createFields.H File Reference
Include dependency graph for createFields.H:

Go to the source code of this file.

Functions

Info<< "Reading field U\n"<< endl;volVectorField U(IOobject("U", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Creating face flux\n"<< endl;surfaceScalarField phi(IOobject("phi", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE), mesh, dimensionedScalar(mesh.Sf().dimensions() *U.dimensions(), 0));autoPtr< viscosityModel > viscosity (viscosityModel::New(mesh))
 
autoPtr< incompressible::momentumTransportModel > turbulence (incompressible::momentumTransportModel::New(U, phi, viscosity))
 
dimensionedVector Ubar ("Ubar", dimVelocity, viscosity)
 
dimensionedVector gradP ("gradP", dimensionSet(0, 1, -2, 0, 0), Zero)
 

Variables

vector flowDirection = (Ubar/mag(Ubar)).value()
 
tensor flowMask = sqr(flowDirection)
 

Function Documentation

◆ viscosity()

Info<< "Reading field U\n" << endl;volVectorField U( IOobject ( "U", runTime.name(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);Info<< "Creating face flux\n" << endl;surfaceScalarField phi( IOobject ( "phi", runTime.name(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar(mesh.Sf().dimensions()*U.dimensions(), 0));autoPtr<viscosityModel> viscosity ( viscosityModel::New(mesh)  )

◆ turbulence()

autoPtr<incompressible::momentumTransportModel> turbulence ( incompressible::momentumTransportModel::New(U, phi, viscosity )

◆ Ubar()

dimensionedVector Ubar ( "Ubar"  ,
dimVelocity  ,
viscosity   
)

◆ gradP()

dimensionedVector gradP ( "gradP"  ,
dimensionSet(0, 1, -2, 0, 0)  ,
Zero   
)

Referenced by meanVelocityForce::constrain().

Here is the caller graph for this function:

Variable Documentation

◆ flowDirection

vector flowDirection = (Ubar/mag(Ubar)).value()

Definition at line 41 of file createFields.H.

◆ flowMask

tensor flowMask = sqr(flowDirection)

Definition at line 42 of file createFields.H.