CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   How to copy boundary types from a volScalarField? (https://www.cfd-online.com/Forums/openfoam/97928-how-copy-boundary-types-volscalarfield.html)

adhiraj February 28, 2012 12:56

How to copy boundary types from a volScalarField?
 
Hi all,
I am trying to create a library that solves for several volScalarFields (say M0,M1...).
The problem is described in terms of the transport equations for the fields, and internally I want to do a transformation such as
Quote:

theta=Foam::log(1+M0)
and then solve the transport equations in terms of theta.
What I would want is that the application using the library will provide the initial/boundary conditions on M0, and that will be converted to equivalent boundary conditions for theta.
I see how the internalField values can be initialized, but how do I convert the boundary conditions?


All times are GMT -4. The time now is 09:03.