3
$\begingroup$

I am new to OpenFoam. And I am trying to add a set (user defined) of differential equations to OpenFoam.

I want to solve this user defined set of equations at each time point in addition to standard fluid dynamic equations.

Theoretically,

SET-1 is ODE/PDE's associated with fluid dynamics (equations already there in openfoam)

SET-2 is ODE/PDE's that are defined by user (how to add this set to openfoam is my question)

Could this be done in OpenFoam? does anyone have a sample example?

Thank you so much for your time and attention.

$\endgroup$

1 Answer 1

4
$\begingroup$

The whole point of the OpenFOAM (OF hereinafter) libraries is exactly what you are inquiring for: PDE mimicking programming for CFD using the FV framework. In order to do what you are asking, you should have a decent foundation in C++ (not necessarily an expert...), of course in FVM and CFD in general. The first step in order to program using the OF framework is to get comfortable using the doxygen browser to dive into the code. Don't get your hopes high if you expect to find a thorough tutorial on OF programming, basically there isn't. You'll have to resort to the OF community or some examples/homeworks/theses that are posted on Chalmers University and foamcfd.com. A good review on the OF framework can be found in the following link.

$\endgroup$
1
  • $\begingroup$ There is also the programmer's guide: google.fr/… $\endgroup$
    – Dai
    Jan 7, 2016 at 8:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.