FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

createFields.H File Reference


Detailed Description

Definition in file createFields.H.

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 ( 0    )
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(), 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(), cellToFaceStencil::allCoupledFacesPatch(), cellToCellStencil::allCoupledFacesPatch(), extendedCellToFaceStencil::calcDistributeMap(), cellToFaceStencil::calcFaceStencil(), parMetisDecomp::calcMetisDistributedCSR(), polyMeshGeometry::checkFaceDotProduct(), polyMeshGeometry::checkFaceSkewness(), polyMeshGeometry::checkFaceTwist(), polyMeshGeometry::checkFaceWeights(), hexRef8::checkMesh(), polyMeshGeometry::checkVolRatio(), LRR::correct(), LaunderGibsonRSTM::correct(), reflectionVectors::correct(), parMetisDecomp::decompose(), 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(), polyBoundaryMesh::movePoints(), pointBoundaryMesh::movePoints(), fvMesh::movePoints(), polyBoundaryMesh::names(), polyBoundaryMesh::physicalTypes(), pointBoundaryMeshMapper::pointBoundaryMeshMapper(), polyBoundaryMesh::polyBoundaryMesh(), fvMeshDistribute::printMeshInfo(), triSurfaceMesh::regions(), polyBoundaryMesh::reorder(), motionSmoother::scaleMesh(), motionSmoother::setDisplacement(), removeFaces::setRefinement(), removeCells::setRefinement(), duplicatePoints::setRefinement(), perfectInterface::setRefinement(), spray::spray(), triSurface::subsetMesh(), surfacePatchIOList::surfacePatchIOList(), faceSet::sync(), syncTools::syncBoundaryFaceList(), syncTools::syncEdgeList(), syncTools::syncEdgeMap(), syncTools::syncFaceList(), syncTools::syncPointList(), syncTools::syncPointMap(), meshRefinement::testSyncBoundaryFaceList(), polyBoundaryMesh::types(), polyBoundaryMesh::updateMesh(), pointBoundaryMesh::updateMesh(), motionSmoother::updateMesh(), cellToFaceStencil::validBoundaryFaces(), cellToCellStencil::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.