1

Previous: Utilities Up: OpenFOAM Structure Next: OpenFOAM tutorials Directory
This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

OpenFOAM Libraries (src Directory)

  • Source code of OpenFOAM libraries is located in the path of system variable $FOAM_SRC
  • You can jump to the OpenFOAM src directory e.g using system variable $FOAM_SRC:
    # cd $FOAM_SRC
  • You can jump to the OpenFOAM src directory e.g using alias src:
    # src
    # ls -l

Fixed Velocity Varying with Patch Radius Boundary Condition

p:

 boundaryField
 {
".*_inlet"
    {
	type            zeroGradient;
    }
 }

U:
 boundaryField
 {
    ".*_inlet"
    {
        type            turboFixedValue;
        value           $internalField;
        artTransform    on;
        axis            ( 0 0 1 );
        r               ( 
                             0.0
                             0.1
                             0.2
                             0.3
                             0.4
        );
      values  ( 
                         (3.9303   -0.71184   3.47481)  
                         (3.98608  -0.692647  3.6621 )
                         (4.03533  -0.650226  3.93062)
                         (4.00646  -0.604214  4.0422 )
                         (3.97447  -0.564151  4.08478)
              );
    }
  }
 

When parameter artTransform is on, the velocity components are of axial radial and tangential meaning. Otherwise, the velocity components are always Cartesian.

The inlet patch is virtually divided in to number of intervals. When parameter r is prescribed (with e.g. five height levels), the inlet patch is virtually divided into five radial intervals. Into each interval is prescribed corresponding value (linear interpolation is employed here).

Previous: Flow path geometry Up: TCFD – Input geometry Next: Thinking in components
This is an automatically generated documentation by LaTeX2HTML utility. In case of any issue, please, contact us at info@cfdsupport.com.

Geometry details

Let us start with a very famous quota which can be applied to general tasks. Nevertheless, in the field of geometry preparation for CFD purposes has significant importance:

“Everything should be made as simple as possible, but no simpler.”
Albert Einstein

During a flow path geometry definition, one should keep in mind a simplicity of the geometry. For a simulation of a complex turbomachinery geometry, tiny details which does not significantly influence the flow should be removed from the flow path. Such details can not be captured by a reasonable amount of cells or can not be captured at all.The picture below depicts an (artificially created) example of such a detail.

CAD badshape
arrowVertical
CAD goodshape

INPUT RULE 2: Create the flow path geometry as simple as possible.