Calling a solver from another solver
Posted: 30 Dec 2020, 06:09
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
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