Execution of different solvers in ElemrSolver

Numerical methods and mathematical models of Elmer
Post Reply
zhanna
Posts: 17
Joined: 15 Nov 2009, 11:56

Execution of different solvers in ElemrSolver

Post by zhanna »

Hello Elmer team
It’s more than a week that I’m studying up and down the ElmerSolver.src and its called subroutines but I still cannot grasp which routine really calls e.g. the solver “FolwSolve” and executes it. Is it “AddSolvers”, “AddEquation”, “ExecSimulation”, “SolveEquations”, “SolverActivate” or “ExecSolver”? Would you please give me some points on this subject?
Sincerely yours,
Zhanna Tarasova, Moscow, Russia
Juha
Site Admin
Posts: 357
Joined: 21 Aug 2009, 15:11

Re: Execution of different solvers in ElemrSolver

Post by Juha »

Hi Zhanna,

typical call sequence might go like this:

ElmerSolver -> ExecSimulation -> SolveEquations -> SolverActivate ->
SingleSolver -> ExecSolver (-> DoExecSolver) -> FlowSolver

You won't find a direct reference to "FlowSolver" from the code, instead
memory address to this routine is stored in the Solver-structure
field called "Procedure".

Best Regards, Juha
zhanna
Posts: 17
Joined: 15 Nov 2009, 11:56

Re: Execution of different solvers in ElemrSolver

Post by zhanna »

I really appreciate for your kind answers Juha. And one more question, There is a DO loop in ElmerSolver which seems to be permanent (DO WHILE (.TRUE.)). What will break this loop and terminate the program when the solution is obtained?
Sincerely yours,
Zhanna Tarasova, Moscow, Russia
Juha
Site Admin
Posts: 357
Joined: 21 Aug 2009, 15:11

Re: Execution of different solvers in ElemrSolver

Post by Juha »

Hi,


>What will break this loop and terminate the program when the solution is obtained?

IF ( .NOT.ReloadInputFile(CurrentModel) ) EXIT

The usual case is that the above statement exits the loop. The FALSE status from
the ReloadInputFile() function means that the input file has been read, and no more
"run" statements have been found (or the file has ended without "run").

Regards, Juha
Post Reply