CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   Boundary scalar field (https://www.cfd-online.com/Forums/openfoam-solving/60295-boundary-scalar-field.html)

segersson March 6, 2006 03:53

Hi, I'm modifying the RNGkEps
 
Hi,
I'm modifying the RNGkEpsilon turbulence model to use wall functions with non-uniform roughness. Since the roughness coefficient (ks) is only needed on the boundary I would like to include a "boundaryField" for this variable among the members of the turbulende model (it seems unnecessary to create a volScalarField when only values on the boundaries are needed). Can anybody tell me how to create and use this kind of field or fieldlist? After some looking in Doxygen I tried GeometricBoundaryField, but it does not seem to work (at least not the way I'm using it).

Regards
David

mattijs March 6, 2006 04:22

Use - FieldField : a field fo
 
Use
- FieldField : a field for every patch, no internal field reference. Reference counted.

or

- PtrList<field>. Same but not reference counted.

You construct them with the number of patches as argument and then setSize the members to be of the size of the patch.


All times are GMT -4. The time now is 02:31.