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.schemes().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-10/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell=0;scalar paRefValue=0.0;setRefCell(pa, simple.dict(), paRefCell, paRefValue);mesh.schemes().setFluxRequired(pa.name());autoPtr< viscosityModel > viscosity (viscosityModel::New(mesh))
 
autoPtr< incompressible::momentumTransportModel > turbulence (incompressible::momentumTransportModel::New(U, phi, viscosity))
 
dimensionedScalar zeroSensitivity ("0", dimVelocity *dimVelocity, 0.0)
 
dimensionedScalar zeroAlpha ("0", dimless/dimTime, 0.0)
 
dimensionedScalar lambda (viscosity->lookup("lambda"))
 
dimensionedScalar alphaMax (viscosity->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

◆ viscosity()

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.schemes().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-10/applications/solvers/incompressible/adjointShapeOptimisationFoam/createFields.H" 2label paRefCell = 0;scalar paRefValue = 0.0;setRefCell( pa, simple.dict(), paRefCell, paRefValue);mesh.schemes().setFluxRequired(pa.name());autoPtr<viscosityModel> viscosity ( viscosityModel::New(mesh )

◆ turbulence()

autoPtr<incompressible::momentumTransportModel> turbulence ( incompressible::momentumTransportModel::New(U, phi, viscosity )

◆ zeroSensitivity()

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

◆ zeroAlpha()

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

◆ lambda()

◆ alphaMax()

dimensionedScalar alphaMax ( viscosity->  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(), actuationDiskSource::addSup(), MomentumCloud< Foam::DSMCCloud >::alpha(), BrownianMotionForce< CloudType >::calcCoupled(), forces::calcForcesMoment(), pointMVCWeight::calcWeights(), isotropic::clone(), equilibrium::clone(), nonEquilibrium::clone(), exponential::clone(), Lun::clone(), TrajectoryCollision< CloudType >::collideParcels(), kOmega< BasicMomentumTransportModel >::correct(), kEpsilon< compressible::momentumTransportModel >::correct(), kOmega2006< BasicMomentumTransportModel >::correct(), SpalartAllmaras< BasicMomentumTransportModel >::correct(), SpalartAllmarasDES< BasicMomentumTransportModel >::correct(), RNGkEpsilon< BasicMomentumTransportModel >::correct(), realizableKE< BasicMomentumTransportModel >::correct(), kEpsilonLopesdaCosta< BasicMomentumTransportModel >::correct(), kOmegaSST< eddyViscosity< RASModel< BasicMomentumTransportModel > >, BasicMomentumTransportModel >::correct(), phaseStabilisedSnGrad< Type >::correction(), 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(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::divq(), 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(), 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(), NamedEnum< compressibleField, 8 >::names(), momentumTransportModel::New(), phaseCompressibleMomentumTransportModel::New(), phaseIncompressibleMomentumTransportModel::New(), 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(), Fickian< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), unityLewisFourier< laminarThermophysicalTransportModel >::q(), nonUnityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), eddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), MaxwellStefan< unityLewisFourier< laminarThermophysicalTransportModel > >::q(), unityLewisEddyDiffusivity< TurbulenceThermophysicalTransportModel >::q(), fvMatrix< Type >::relax(), twoPhaseChangeModel::rho2(), general::sample(), fvMatrix< Type >::setValues(), PCICG< Type, DType, LUType >::solve(), PBiCCCG< Type, DType, LUType >::solve(), PBiCICG< Type, DType, LUType >::solve(), PBiCG::solve(), PCG::solve(), PBiCGStab::solve(), ThermoSurfaceFilm< CloudType >::splashDirection(), advectiveFvPatchField< Type >::updateCoeffs(), thermalBaffle1DFvPatchScalarField< solidType >::updateCoeffs(), Explicit< CloudType >::velocityCorrection(), while(), FacePostProcessing< CloudType >::write(), ParticleCollector< CloudType >::write(), PengRobinsonGas< Specie >::Z(), accelerationSource::~accelerationSource(), actuationDiskSource::~actuationDiskSource(), HarrisCrighton::~HarrisCrighton(), isotropicDamping::~isotropicDamping(), twoPhaseChangeModel::~twoPhaseChangeModel(), 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.