Calling a solver from another solver

General discussion about Elmer
Post Reply
spacedout
Posts: 177
Joined: 30 Mar 2020, 23:27
Antispam: Yes

Calling a solver from another solver

Post by spacedout »

Good evening to all Elmer users

I am using AdvectionDiffusionSolver where the source Si from eqn 3.2 of the Elmer Models manual is of the form

a * abs( v * Ci + Di * grad(Ci) ) - b * Ci * Cj

where a, b are arbitrary fixed constants and Ci , Di , v are from eqn 3.2 and Cj is the concentration of a different species j.

I know that FluxSolver can yield grad(Ci) for variable Ci. But the problem is that I need to compute grad(Ci) within the non linear iteration loop of AdvectionDiffusionSolver. Hence the title of my post. Is it that only ElmerSolver can call solvers (from a .sif) and that I would have to write my own routine to handle this particular case ?

Best regards,
Marc
mika
Posts: 231
Joined: 15 Sep 2009, 07:44

Re: Calling a solver from another solver

Post by mika »

Nowadays a solver may indeed activate the execution of another solver. For some documentation of different options see the section 13.2 of ElmerSolver Manual (http://www.nic.funet.fi/pub/sci/physics ... Manual.pdf).

-- Mika
spacedout
Posts: 177
Joined: 30 Mar 2020, 23:27
Antispam: Yes

Re: Calling a solver from another solver

Post by spacedout »

Fantastic ! Up to now, I was reading the outdated Elmer documentation from last April. Armed with this November documentation, I believe I can now make real progress.
Post Reply