All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
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);label pRefCell=0;scalar pRefValue=0.0;setRefCell(p, simple.dict(), pRefCell, pRefValue);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);# 66 "/home/ubuntu/OpenFOAM-7/applications/solvers/incompressible/adjointShapeOptimizationFoam/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::turbulenceModel > turbulence (incompressible::turbulenceModel::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);label pRefCell = 0;scalar pRefValue = 0.0;setRefCell(p, simple.dict(), pRefCell, pRefValue);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);# 66 "/home/ubuntu/OpenFOAM-7/applications/solvers/incompressible/adjointShapeOptimizationFoam/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::turbulenceModel> turbulence ( incompressible::turbulenceModel::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 solidEqulibriumEnergySource::addSup(), isotropicDamping::addSup(), KinematicCloud< Cloud< basicKinematicCollidingParcel > >::alpha(), BrownianMotionForce< CloudType >::calcCoupled(), pointMVCWeight::calcWeights(), equilibrium::clone(), isotropic::clone(), nonEquilibrium::clone(), exponential::clone(), Lun::clone(), TrajectoryCollision< CloudType >::collideParcels(), contactAngleForce::correct(), thixotropicViscosity::correct(), kOmega< BasicTurbulenceModel >::correct(), kEpsilon< EddyDiffusivity< compressible::turbulenceModel > >::correct(), kEpsilonLopesdaCosta< BasicTurbulenceModel >::correct(), kOmegaSST< LESeddyViscosity< BasicTurbulenceModel >, BasicTurbulenceModel >::correct(), solidification::correctModel(), kOmegaSSTLM< BasicTurbulenceModel >::correctReThetatGammaInt(), PengRobinsonGas< Specie >::Cp(), PengRobinsonGas< Specie >::CpMCv(), QRMatrix< MatrixType >::decompose(), SpalartAllmarasIDDES< BasicTurbulenceModel >::dTilda(), PengRobinsonGas< Specie >::E(), EulerDdtScheme< Type >::EulerDdtScheme(), phaseScalarTransport::execute(), fvMatrix< Type >::faceFluxCorrectionPtr(), for(), forAll(), forAllIter(), EulerDdtScheme< Type >::fvcDdt(), PengRobinsonGas< Specie >::H(), if(), Foam::incGammaRatio_Q(), MPPICCloud< Foam::DSMCCloud >::info(), triangleFuncs::intersectAxesBundle(), localEulerDdtScheme< Type >::localEulerDdtScheme(), steadyStateDdtScheme< Type >::mesh(), boundedDdtScheme< Type >::mesh(), CoEulerDdtScheme< Type >::mesh(), SLTSDdtScheme< Type >::mesh(), backwardDdtScheme< Type >::mesh(), ddtScheme< Type >::mesh(), explicitPorositySource::model(), laminarModel< BasicTurbulenceModel >::New(), RASModel< EddyDiffusivity< phaseCompressibleTurbulenceModel > >::New(), LESModel< BasicTurbulenceModel >::New(), CrankNicolsonDdtScheme< Type >::ocCoeff(), ListPlusEqOp< T, Size >::operator()(), option::iNew::operator()(), SprayCloud< Foam::DSMCCloud >::penetration(), ParticleErosion< CloudType >::postPatch(), ParticleTrap< CloudType >::preEvolve(), fvMatrix< Type >::relax(), general::sample(), primaryRadiation::Shs(), standardRadiation::Shs(), constantRadiation::Shs(), solidEqulibriumEnergySource::solidEqulibriumEnergySource(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PCICG< Type, DType, LUType >::solve(), PCG::solve(), PBiCG::solve(), PBiCGStab::solve(), thermalBaffle::solveEnergy(), reactingOneDim::solveEnergy(), ThermoSurfaceFilm< CloudType >::splashDirection(), TurbulenceModel< volScalarField, geometricOneField, incompressibleTurbulenceModel, TransportModel >::TurbulenceModel(), filmPyrolysisRadiativeCoupledMixedFvPatchScalarField::updateCoeffs(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), advectiveFvPatchField< Type >::updateCoeffs(), Explicit< CloudType >::velocityCorrection(), volumeFractionSource::volumeFractionSource(), while(), FacePostProcessing< CloudType >::write(), ParticleCollector< CloudType >::write(), PengRobinsonGas< Specie >::Z(), accelerationSource::~accelerationSource(), HarrisCrighton::~HarrisCrighton(), isotropicDamping::~isotropicDamping(), optionList::~optionList(), PhaseLimitStabilization< Type >::~PhaseLimitStabilization(), and verticalDamping::~verticalDamping().

◆ zeroCells()

zeroCells ( alpha  ,
inletCells   
)

Variable Documentation

◆ inletCells

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

Definition at line 95 of file createFields.H.