OpenFOAM CFD and Scalar transport

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

OpenFOAM CFD and Scalar transport

l.vijayasarathi
Hey hello,


Can steady state OpenFOAM flow simulation be combined with Scalar transport (convection-diffusion) and a custom equation in FEA?

Regards,

Lakshmi Narasiman V
Reply | Threaded
Open this post in threaded view
|

Re: OpenFOAM CFD and Scalar transport

Precise Simulation
Administrator
Dear Lakshmi,

Although planned for the future, currently solvers can not be coupled and combined with each other. So you are currently limited to use either OpenFOAM, FEniCS, or the built-in solvers in one solving step.

However, if your problem features one-way couplings, you could for example solve your fluid problem with OpenFOAM first, and use that solution as (fixed) input to your transport or other PDE problems.


l.vijayasarathi wrote
Hey hello,


Can steady state OpenFOAM flow simulation be combined with Scalar transport (convection-diffusion) and a custom equation in FEA?

Regards,

Lakshmi Narasiman V
Reply | Threaded
Open this post in threaded view
|

Re: OpenFOAM CFD and Scalar transport

l.vijayasarathi
Hello Admin,


I can solve OpenFOAM first and use it as input for my Transport.

I want 2 way coupling between convective-diffusive equation and an ODE ( which is the custom equation).

Is this possible?

Regards,
Lakshmi Narasiman V

Reply | Threaded
Open this post in threaded view
|

Re: OpenFOAM CFD and Scalar transport

l.vijayasarathi
Hallo Admin,


I mean, i want to calculate concentration at every position after each time step and update it back to the convective-diffusive equation.

To calculate the concentration, i need to solve an ODE.

Regards,
Lakshmi Narasiman V


 
Reply | Threaded
Open this post in threaded view
|

Re: OpenFOAM CFD and Scalar transport

Precise Simulation
Administrator
FEATool currently only solves systems of PDEs. However, as Matlab functions and scripts are valid as boundary and equations coefficents, you could write your own custom function to solve and ODE and return the result as a coefficient. See for example the "Custom and user-defined functions" section in https://www.featool.com/tutorial/2019/01/07/modeling-with-non-constant-coefficients-in-featool-multiphysics.html.  Alternatively, you can make use of the solver hook functionality to execute a custom script before or after each time step, an example of this is used to modify the system matrix before each solver iteration to implement periodic boundary conditions.