fvPatchFields/derived/fixedProfile: New BC which applies the specified 1D profile
This is useful when applying an experimentally obtained profile as an inlet condition: Example of the boundary condition specification: \verbatim myPatch { type fixedProfile; profile csvFile; profileCoeffs { nHeaderLine 0; // Number of header lines refColumn 0; // Reference column index componentColumns (1 2 3); // Component column indices separator ","; // Optional (defaults to ",") mergeSeparators no; // Merge multiple separators fileName "Uprofile.csv"; // name of csv data file outOfBounds clamp; // Optional out-of-bounds handling interpolationScheme linear; // Optional interpolation scheme } direction (0 1 0); origin 0; } \endverbatim or a simple polynomial profile: Example setting a parabolic inlet profile for the PitzDaily case: \verbatim inlet { type fixedProfile; profile polynomial ( ((1 0 0) (0 0 0)) ((-6200 0 0) (2 0 0)) ); direction (0 1 0); origin 0.0127; } \endverbatim Based on code provided by Hassan Kassem: http://www.openfoam.org/mantisbt/view.php?id=1922
Showing
- src/finiteVolume/Make/files 1 addition, 0 deletionssrc/finiteVolume/Make/files
- src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.C 167 additions, 0 deletions...tchFields/derived/fixedProfile/fixedProfileFvPatchField.C
- src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchField.H 230 additions, 0 deletions...tchFields/derived/fixedProfile/fixedProfileFvPatchField.H
- src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchFields.C 43 additions, 0 deletions...chFields/derived/fixedProfile/fixedProfileFvPatchFields.C
- src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchFields.H 49 additions, 0 deletions...chFields/derived/fixedProfile/fixedProfileFvPatchFields.H
- src/finiteVolume/fields/fvPatchFields/derived/fixedProfile/fixedProfileFvPatchFieldsFwd.H 50 additions, 0 deletions...ields/derived/fixedProfile/fixedProfileFvPatchFieldsFwd.H
Please register or sign in to comment