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

Go to the source code of this file.

Functions

Info<< "Reading field p\"<< endl;volScalarField p(IOobject("p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field U\"<< endl;volVectorField U(IOobject("U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);pressureReference pressureReference(p, simple.dict());mesh.setFluxRequired(p.name());Info<< "Reading field pa\"<< endl;volScalarField pa(IOobject("pa", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);Info<< "Reading field Ua\"<< endl;volVectorField Ua(IOobject("Ua", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE), mesh);# 65 "/home/ubuntu/OpenFOAM-9/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell=0;scalar paRefValue=0.0;setRefCell(pa, simple.dict(), paRefCell, paRefValue);mesh.setFluxRequired(pa.name());singlePhaseTransportModel laminarTransport(U, phi);autoPtr< incompressible::momentumTransportModel > turbulence (incompressible::momentumTransportModel::New(U, phi, laminarTransport))
 
dimensionedScalar zeroSensitivity ("0", dimVelocity *dimVelocity, 0.0)
 
dimensionedScalar zeroAlpha ("0", dimless/dimTime, 0.0)
 
dimensionedScalar lambda (laminarTransport.lookup("lambda"))
 
dimensionedScalar alphaMax (laminarTransport.lookup("alphaMax"))
 
volScalarField alpha (IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
 
 zeroCells (alpha, inletCells)
 

Variables

const labelList & inletCells = mesh.boundary()["inlet"].faceCells()
 

Function Documentation

◆ turbulence()

Info<< "Reading field p\n" << endl;volScalarField p( IOobject ( "p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);Info<< "Reading field U\n" << endl;volVectorField U( IOobject ( "U", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);pressureReference pressureReference(p, simple.dict());mesh.setFluxRequired(p.name());Info<< "Reading field pa\n" << endl;volScalarField pa( IOobject ( "pa", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);Info<< "Reading field Ua\n" << endl;volVectorField Ua( IOobject ( "Ua", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh);# 65 "/home/ubuntu/OpenFOAM-9/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell = 0;scalar paRefValue = 0.0;setRefCell( pa, simple.dict(), paRefCell, paRefValue);mesh.setFluxRequired(pa.name());singlePhaseTransportModel laminarTransport(U, phi);autoPtr<incompressible::momentumTransportModel> turbulence ( incompressible::momentumTransportModel::New(U, phi, laminarTransport )

◆ zeroSensitivity()

dimensionedScalar zeroSensitivity ( "0"  ,
dimVelocity *  dimVelocity,
0.  0 
)

◆ zeroAlpha()

dimensionedScalar zeroAlpha ( "0"  ,
dimless/  dimTime,
0.  0 
)

◆ lambda()

◆ alphaMax()

dimensionedScalar alphaMax ( laminarTransport.  lookup"alphaMax")

Referenced by MPPICCloud< Foam::DSMCCloud >::info().

Here is the caller graph for this function:

◆ alpha()

volScalarField alpha ( IOobject("alpha", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE)  ,
lambda maxUa &U, zeroSensitivity 
)

Referenced by isotropicDamping::addSup(), MomentumCloud< Foam::DSMCCloud >::alpha(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::alphaEff(), BrownianMotionForce< CloudType >::calcCoupled(), forces::calcForcesMoment(), pointMVCWeight::calcWeights(), equilibrium::clone(), isotropic::clone(), nonEquilibrium::clone(), exponential::clone(), Lun::clone(), TrajectoryCollision< CloudType >::collideParcels(), kOmega< BasicMomentumTransportModel >::correct(), kEpsilon< compressible::momentumTransportModel >::correct(), RNGkEpsilon< BasicMomentumTransportModel >::correct(), realizableKE< BasicMomentumTransportModel >::correct(), SpalartAllmaras< BasicMomentumTransportModel >::correct(), kOmega2006< BasicMomentumTransportModel >::correct(), SpalartAllmarasDES< BasicMomentumTransportModel >::correct(), kEpsilonLopesdaCosta< BasicMomentumTransportModel >::correct(), kOmegaSST< eddyViscosity< RASModel< BasicMomentumTransportModel > >, BasicMomentumTransportModel >::correct(), waxSolventEvaporation::correctModel(), kOmegaSSTLM< BasicMomentumTransportModel >::correctReThetatGammaInt(), PengRobinsonGas< Specie >::Cp(), PengRobinsonGas< Specie >::CpMCv(), QRMatrix< MatrixType >::decompose(), forces::devTau(), unityLewisFourier< laminarThermophysicalTransportModel >::divj(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::divj(), Fourier< BasicThermophysicalTransportModel >::divq(), heSolidThermo< BasicSolidThermo, MixtureType >::divq(), unityLewisFourier< laminarThermophysicalTransportModel >::divq(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::divq(), eddyDiffusivity< TurbulenceThermophysicalTransportModel >::divq(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::divq(), SpalartAllmarasIDDES< BasicMomentumTransportModel >::dTilda(), PengRobinsonGas< Specie >::E(), EulerDdtScheme< Type >::EulerDdtScheme(), phaseScalarTransport::execute(), fvMatrix< Type >::faceFluxCorrectionPtr(), flowRateInletVelocityFvPatchVectorField::flowRateInletVelocityFvPatchVectorField(), for(), forAll(), EulerDdtScheme< Type >::fvcDdt(), CoEulerDdtScheme< Type >::fvcDdt(), SLTSDdtScheme< Type >::fvcDdt(), backwardDdtScheme< Type >::fvcDdt(), CrankNicolsonDdtScheme< Type >::fvcDdt(), fvModels::global(), PengRobinsonGas< Specie >::H(), Foam::incGammaRatio_Q(), MPPICCloud< Foam::DSMCCloud >::info(), triangleFuncs::intersectAxesBundle(), unityLewisFourier< laminarThermophysicalTransportModel >::j(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::j(), localEulerDdtScheme< Type >::localEulerDdtScheme(), steadyStateDdtScheme< Type >::mesh(), boundedDdtScheme< Type >::mesh(), CoEulerDdtScheme< Type >::mesh(), SLTSDdtScheme< Type >::mesh(), backwardDdtScheme< Type >::mesh(), ddtScheme< Type >::mesh(), explicitPorositySource::model(), MomentumTransportModel< volScalarField, geometricOneField, incompressibleMomentumTransportModel, TransportModel >::MomentumTransportModel(), NamedEnum< compressibleField, 8 >::names(), laminarModel< BasicMomentumTransportModel >::New(), RASModel< phaseCompressible::momentumTransportModel >::New(), LESModel< BasicMomentumTransportModel >::New(), CrankNicolsonDdtScheme< Type >::ocCoeff(), ListPlusEqOp< T, Size >::operator()(), SprayCloud< Foam::DSMCCloud >::penetration(), ParticleErosion< CloudType >::postPatch(), ParticleTrap< CloudType >::preEvolve(), cavitationModel::pSat(), Fourier< BasicThermophysicalTransportModel >::q(), unityLewisFourier< laminarThermophysicalTransportModel >::q(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), eddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), fvMatrix< Type >::relax(), twoPhaseChangeModel::rho2(), general::sample(), PBiCCCG< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PBiCG::solve(), PCG::solve(), PBiCGStab::solve(), thermalBaffle::solveEnergy(), ThermoSurfaceFilm< CloudType >::splashDirection(), advectiveFvPatchField< Type >::updateCoeffs(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), Explicit< CloudType >::velocityCorrection(), while(), FacePostProcessing< CloudType >::write(), ParticleCollector< CloudType >::write(), PengRobinsonGas< Specie >::Z(), accelerationSource::~accelerationSource(), HarrisCrighton::~HarrisCrighton(), isotropicDamping::~isotropicDamping(), twoPhaseChangeModel::~twoPhaseChangeModel(), unityLewisFourier< laminarThermophysicalTransportModel >::~unityLewisFourier(), and verticalDamping::~verticalDamping().

◆ zeroCells()

zeroCells ( alpha  ,
inletCells   
)

Variable Documentation

◆ inletCells

const labelList& inletCells = mesh.boundary()["inlet"].faceCells()

Definition at line 94 of file createFields.H.