FreeFOAM The Cross-Platform CFD Toolkit
createFields.H File Reference

Detailed Description

Definition in file createFields.H.

+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

Info<< "Reading field U\n"
<< endl;volVectorField U(IOobject("U",
runTime.timeName(), mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE), mesh);Info
<< "Creating face flux\n"
<< endl;surfaceScalarField phi(IOobject("phi",
runTime.timeName(), mesh,
IOobject::NO_READ,
IOobject::NO_WRITE), mesh,
dimensionedScalar("zero",
mesh.Sf().dimensions()*U.dimensions(),
0.0));singlePhaseTransportModel
laminarTransport(U, phi);autoPtr
< incompressible::RASModel
turbulence (incompressible::RASModel::New(U, phi, laminarTransport))
IOdictionary transportProperties (IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE))
dimensionedVector Ubar (transportProperties.lookup("Ubar"))
scalar nWallFaces (0)
vector wallNormal (vector::zero)
 forAll (patches, patchi)
dimensionedVector gradP ("gradP", dimensionSet(0, 1,-2, 0, 0), vector(0, 0, 0))

Variables

vector flowDirection = (Ubar/mag(Ubar)).value()
tensor flowMask = sqr(flowDirection)
const fvPatchList & patches = mesh.boundary()
scalarField y = wallNormal & mesh.C().internalField()
 create position array for graph generation

Function Documentation

Info<< "Reading field U\n" << endl; volVectorField U ( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); Info<< "Creating face flux\n" << endl; surfaceScalarField phi ( IOobject ( "phi", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::NO_WRITE ), mesh, dimensionedScalar("zero", mesh.Sf().dimensions()*U.dimensions(), 0.0) ); singlePhaseTransportModel laminarTransport(U, phi); autoPtr<incompressible::RASModel> turbulence ( incompressible::RASModel::  NewU, phi, laminarTransport)
IOdictionary transportProperties ( IOobject("transportProperties", runTime.constant(), mesh, IOobject::MUST_READ, IOobject::NO_WRITE)  )

Referenced by forces::devRhoReff().

dimensionedVector Ubar ( transportProperties.  lookup"Ubar")

Referenced by if().

scalar nWallFaces ( )
vector wallNormal ( vector::zero  )

Referenced by forAll().

forAll ( patches  ,
patchi   
)

Check that wall faces are parallel

Definition at line 68 of file createFields.H.

References Foam::abort(), Foam::FatalError, forAll, Foam::Info, Foam::mag(), mesh, nWallFaces(), patchi, and wallNormal().

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

Referenced by if().


Variable Documentation

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

Definition at line 57 of file createFields.H.

tensor flowMask = sqr(flowDirection)

Definition at line 58 of file createFields.H.

const fvPatchList& patches = mesh.boundary()

Definition at line 66 of file createFields.H.

Referenced by fvMeshAdder::add(), cellToCellStencil::allCoupledFacesPatch(), cellToFaceStencil::allCoupledFacesPatch(), extendedCellToFaceStencil::calcDistributeMap(), cellToFaceStencil::calcFaceStencil(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), hexRef8::checkMesh(), polyMeshGeometry::checkVolRatio(), reflectionVectors::correct(), LRR::correct(), LaunderGibsonRSTM::correct(), distributedTriSurfaceMesh::distribute(), Foam::resError::div(), extendedCellToFaceStencil::extendedCellToFaceStencil(), extendedFaceToCellStencil::extendedFaceToCellStencil(), polyBoundaryMesh::findPatchID(), FreeStream< CloudType >::FreeStream(), fvBoundaryMeshMapper::fvBoundaryMeshMapper(), removeCells::getExposedFaces(), pointBoundaryMesh::globalPatch(), isoSurfaceCell::isoSurfaceCell(), localPointRegion::localPointRegion(), meshRefinement::mergePatchFaces(), meshTriangulation::meshTriangulation(), pointBoundaryMesh::movePoints(), polyBoundaryMesh::movePoints(), fvMesh::movePoints(), polyBoundaryMesh::names(), polyBoundaryMesh::physicalTypes(), pointBoundaryMeshMapper::pointBoundaryMeshMapper(), polyBoundaryMesh::polyBoundaryMesh(), fvMeshDistribute::printMeshInfo(), triSurfaceMesh::regions(), polyBoundaryMesh::reorder(), motionSmoother::scaleMesh(), motionSmoother::setDisplacement(), duplicatePoints::setRefinement(), removeCells::setRefinement(), perfectInterface::setRefinement(), removeFaces::setRefinement(), triSurface::subsetMesh(), surfacePatchIOList::surfacePatchIOList(), faceSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointList(), syncTools::syncPointMap(), meshRefinement::testSyncBoundaryFaceList(), polyBoundaryMesh::types(), pointBoundaryMesh::updateMesh(), polyBoundaryMesh::updateMesh(), motionSmoother::updateMesh(), cellToCellStencil::validBoundaryFaces(), cellToFaceStencil::validBoundaryFaces(), triSurface::write(), and polyBoundaryMesh::writeData().

scalarField y = wallNormal & mesh.C().internalField()

create position array for graph generation

Definition at line 114 of file createFields.H.