Export a C code
Is it possible to export a C written code to OpenFOAM?
For example, if Im looking forward to expressing a variable boundary condition (let's assume a senoid), can I write it in C and use it as an input to OpenFOAM?
Like in Fluent there are the UDF's (user defined functions).
Thank you, very much.
It'll depend on what type of bc you have (fixed, gradient, mixed), but you could take one of the timeVaryingXXX boundary conditions from OpenFOAM as a starting point and define your things as 'extern C' binding (presuming they are in an external library.
The other possibility is just to compile your existing C code as C++ as part of your new OpenFOAM bc.
|All times are GMT -4. The time now is 05:02.|