CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Boundary scalar field

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 6, 2006, 04:53
Default Hi, I'm modifying the RNGkEps
  #1
Member
 
David Segersson
Join Date: Mar 2009
Posts: 39
Rep Power: 17
segersson is on a distinguished road
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
segersson is offline   Reply With Quote

Old   March 6, 2006, 05:22
Default Use - FieldField : a field fo
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
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.
mattijs is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Scalar Field Residual dak81 OpenFOAM Running, Solving & CFD 3 February 13, 2008 02:48
[mesh manipulation] Mesh refinemt by scalar field zurdo OpenFOAM Meshing & Mesh Conversion 3 January 9, 2008 06:15
MeshPhi for scalar field in 14 gone tehache OpenFOAM Running, Solving & CFD 0 June 18, 2007 07:20
Passing scalar field across processors ankgupta8um OpenFOAM Running, Solving & CFD 1 June 7, 2006 04:32
Set a fixed value of scalar in flow field. Ke Su FLUENT 0 June 20, 2003 15:47


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