CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM

Creating new boundary condition

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 16, 2006, 11:30
Default Hi, Can anyone tell me what
  #1
Senior Member
 
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 7
billy is on a distinguished road
Hi,

Can anyone tell me what are the major steps to implement a new boundary condition?

Thanks,

Billy.
billy is offline   Reply With Quote

Old   December 18, 2006, 12:34
Default Hi Billy, If your new fiel
  #2
Senior Member
 
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 7
hemph is on a distinguished road
Hi Billy,

If your new field is based on a fixedValueField, you will need to reimplement the operator(==) according to the new condition.
See for instance timeVaryingUniformFixedValueFvPatchField.C
for a good example

If it is a gradient-based conditions you need to implement something similar for the gradient. Look at for instance wallBuoyantPressureFvPatchScalarField.C

Most derived boundary conditions in finiteVolume/fields/fvPatchFields/derivedFvPatchFields
have either fixedGradient or fixedValue as a base class, reading in extra fields as needed.
A good step is to copy one which is closest to what you wish to implement to your personal application-dir and compile it into $FOAM_USER_LIBBIN, keeping it separate from the ones supplied by OpenFOAM.
hemph is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Boundary condition of the third kind or Danckwertz boundary condition plage OpenFOAM Running, Solving & CFD 4 October 3, 2006 13:21
Slip Boundary Condition for Moving Boundary Shukla Main CFD Forum 3 November 11, 2005 16:02
creating a boundary layer mesh SANAT DAS FLUENT 1 August 11, 2005 13:57
Creating Boundary layer Ken FLUENT 0 April 28, 2005 13:23
udf boundary condition stefan FLUENT 0 December 4, 2002 10:10


All times are GMT -4. The time now is 01:40.