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

Go to the source code of this file.

Functions

 Info<< "Reading velocity field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);U=dimensionedVector(U.dimensions(), Zero);surfaceScalarField phi(IOobject("phi", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), fvc::flux(U));if(args.found("initialiseUBCs")){ U.correctBoundaryConditions();phi=fvc::flux(U);}const word pName=args.getOrDefault< word > ("pName", "p")
 
wordList pBCTypes (U.boundaryField().size(), fixedValueFvPatchScalarField::typeName)
 
 forAll (U.boundaryField(), patchi)
 
 Info<< "Constructing pressure field "<< pName<< nl<< endl;volScalarField p(IOobject(pName, runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false), mesh, dimensionedScalar(sqr(dimVelocity), Zero), pBCTypes);wordList PhiBCTypes(p.boundaryField().size(), zeroGradientFvPatchScalarField::typeName);forAll(p.boundaryField(), patchi){ if(p.boundaryField()[patchi].fixesValue()) { PhiBCTypes[patchi]=fixedValueFvPatchScalarField::typeName;}}Info<< "Constructing velocity potential field Phi\n"<< endl;volScalarField Phi(IOobject("Phi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar(dimLength *dimVelocity, Zero), PhiBCTypes);label PhiRefCell=0;scalar PhiRefValue=0;setRefCell(Phi, potentialFlow.dict(), PhiRefCell, PhiRefValue);mesh.setFluxRequired(Phi.name());{ wordHashSet &nonInt=const_cast< wordHashSet & > (Stencil::New(mesh).nonInterpolatedFields())
 
nonInt insert ("cellMask")
 
nonInt insert ("interpolatedCells")
 

Function Documentation

◆ Info<< "Reading velocity field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);U=dimensionedVector(U.dimensions(), Zero);surfaceScalarField phi(IOobject("phi", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), fvc::flux(U));if(args.found("initialiseUBCs")){ U.correctBoundaryConditions();phi=fvc::flux(U);}const word pName=args.getOrDefault< word >()

Info<< "Reading velocity field U\n"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);U=dimensionedVector(U.dimensions(), Zero);surfaceScalarField phi(IOobject("phi", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE), fvc::flux(U));if(args.found("initialiseUBCs")){ U.correctBoundaryConditions();phi=fvc::flux(U);}const word pName=args.getOrDefault< word > ( "pName"  ,
"p"   
)

◆ pBCTypes()

wordList pBCTypes ( U.  boundaryField).size(,
fixedValueFvPatchScalarField::typeName   
)

◆ forAll()

forAll ( U.  boundaryField(),
patchi   
)

Definition at line 52 of file createFields.H.

References pBCTypes(), ensightPTraits< Type >::typeName, and U.

Here is the call graph for this function:

◆ Info<< "Constructing pressure field "<< pName<< nl<< endl;volScalarField p(IOobject(pName, runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false), mesh, dimensionedScalar(sqr(dimVelocity), Zero), pBCTypes);wordList PhiBCTypes(p.boundaryField().size(), zeroGradientFvPatchScalarField::typeName);forAll(p.boundaryField(), patchi){ if(p.boundaryField()[patchi].fixesValue()) { PhiBCTypes[patchi]=fixedValueFvPatchScalarField::typeName;}}Info<< "Constructing velocity potential field Phi\n"<< endl;volScalarField Phi(IOobject("Phi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar(dimLength *dimVelocity, Zero), PhiBCTypes);label PhiRefCell=0;scalar PhiRefValue=0;setRefCell(Phi, potentialFlow.dict(), PhiRefCell, PhiRefValue);mesh.setFluxRequired(Phi.name());{ wordHashSet &nonInt=const_cast< wordHashSet & >()

Info<< "Constructing pressure field "<< pName<< nl<< endl;volScalarField p(IOobject(pName, runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false), mesh, dimensionedScalar(sqr(dimVelocity), Zero), pBCTypes);wordList PhiBCTypes(p.boundaryField().size(), zeroGradientFvPatchScalarField::typeName);forAll(p.boundaryField(), patchi){ if(p.boundaryField()[patchi].fixesValue()) { PhiBCTypes[patchi]=fixedValueFvPatchScalarField::typeName;}}Info<< "Constructing velocity potential field Phi\n"<< endl;volScalarField Phi(IOobject("Phi", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE), mesh, dimensionedScalar(dimLength *dimVelocity, Zero), PhiBCTypes);label PhiRefCell=0;scalar PhiRefValue=0;setRefCell(Phi, potentialFlow.dict(), PhiRefCell, PhiRefValue);mesh.setFluxRequired(Phi.name());{ wordHashSet &nonInt=const_cast< wordHashSet & > ( Stencil::New(mesh).nonInterpolatedFields()  )

◆ insert() [1/2]

nonInt insert ( "cellMask"  )

◆ insert() [2/2]

nonInt insert ( "interpolatedCells"  )