|
[Sponsors] |
December 16, 2006, 11:30 |
Hi,
Can anyone tell me what
|
#1 |
Senior Member
Billy
Join Date: Mar 2009
Posts: 167
Rep Power: 17 |
Hi,
Can anyone tell me what are the major steps to implement a new boundary condition? Thanks, Billy. |
|
December 18, 2006, 12:34 |
Hi Billy,
If your new fiel
|
#2 |
Senior Member
Rasmus Hemph
Join Date: Mar 2009
Location: Sweden
Posts: 108
Rep Power: 17 |
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. |
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
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 |