69 #ifndef adjointSpalartAllmaras_H 70 #define adjointSpalartAllmaras_H 79 namespace incompressibleAdjoint
81 namespace adjointRASModels
306 const word& adjointTurbulenceModelName
307 = adjointTurbulenceModel::typeName,
308 const word& modelName = typeName
void updatePrimalRelatedFields()
Update the constant primal-related fields.
tmp< volScalarField > dfw_dNuTilda(const volScalarField &Stilda, const volScalarField &dfwdr, const volScalarField &dStildadNuTilda) const
virtual const boundaryVectorField & wallShapeSensitivities()
Sensitivity terms for shape optimisation, emerging from.
tmp< volScalarField > DnuTildaEff() const
tmp< volScalarField > dP_dNuTilda(const volScalarField &dStildadNuTilda) const
virtual tmp< scalarField > diffusionCoeffVar1(label patchI) const
Diffusion coefficient of the first primal and adjoint turbulence model equation. Needed for some adjo...
volVectorField gradNuTilda_
virtual tmp< volVectorField > adjointMeanFlowSource()
Source terms to the adjoint momentum equation due to the differentiation of the turbulence model...
const volScalarField & nuTilda() const
References to the primal turbulence model variables.
class for managing incompressible objective functions.
tmp< volScalarField > dStilda_dNuTilda(const volScalarField &Omega, const volScalarField &fv2, const volScalarField &dFv2dChi) const
dimensionedScalar sigmaNut_
tmp< volScalarField > Stilda(const volScalarField &chi, const volScalarField &fv1) const
tmp< volScalarField > dFv2_dChi(const volScalarField &chi, const volScalarField &fv1, const volScalarField &dFv1dChi) const
Continuous adjoint to the Spalart-Allmaras one-eqn mixing-length model for incompressible flows...
volScalarField mask_
Field for masking (convergence enhancement)
virtual const boundaryVectorField & adjointMomentumBCSource() const
Source for the outlet adjoint momentum BC coming from differentiating the turbulence model...
tmp< volScalarField > dD_dNuTilda(const volScalarField &fw, const volScalarField &dfwdNuTilda) const
tmp< volScalarField > r(const volScalarField &Stilda) const
volScalarField productionDestructionSource_
Base class for solution control classes.
tmp< volScalarField > dStilda_dDelta(const volScalarField &Omega, const volScalarField &fv2) const
tmp< volScalarField > dr_dNuTilda(const volScalarField &Stilda) const
tmp< volScalarField > chi() const
tmp< volScalarField > dr_dDelta(const volScalarField &Stilda) const
A class for handling words, derived from Foam::string.
virtual tmp< volScalarField > nutJacobianTMVar1() const
Jacobian of nut wrt the first turbulence model variable.
Abstract base class for incompressible turbulence models.
virtual ~adjointSpalartAllmaras()=default
Destructor.
virtual bool read()
Read adjointRASProperties dictionary.
volScalarField & nuaTilda()
Access to the adjoint Spalart - Allmaras field.
autoPtr< volScalarField > adjointTMVariable1Ptr_
Adjoint turbulence model variable 1.
virtual tmp< volSymmTensorField > devReff() const
Return the effective stress tensor including the laminar stress.
dimensionedScalar minStilda_
volTensorField momentumSourceMult_
tmp< volScalarField > dStilda_dOmega(const volScalarField &Omega, const volScalarField &fv2) const
virtual void correct()
Solve the adjoint turbulence equations.
tmp< volScalarField > dFv1_dChi(const volScalarField &chi) const
tmp< volScalarField > dnut_dNuTilda(const volScalarField &fv1, const volScalarField &dFv1dChi) const
volSymmTensorField symmAdjointProductionU_
Manages the adjoint mean flow fields and their mean values.
const volScalarField & y_
Wall distance.
tmp< volScalarField > dfw_dOmega(const volScalarField &Stilda, const volScalarField &dfwdr, const volScalarField &dStildadOmega) const
virtual tmp< fvVectorMatrix > divDevReff(volVectorField &U) const
Return the diffusion term for the momentum equation.
virtual const boundaryVectorField & wallFloCoSensitivities()
Sensitivity terms for flow control, emerging from the.
tmp< volScalarField > fw(const volScalarField &Stilda) const
tmp< volScalarField > fv2(const volScalarField &chi, const volScalarField &fv1) const
tmp< volScalarField > dfw_dr(const volScalarField &Stilda) const
virtual void nullify()
Nullify all adjoint turbulence model fields and their old times.
tmp< volScalarField > dr_dStilda(const volScalarField &Stilda) const
TypeName("adjointSpalartAllmaras")
Runtime type information.
virtual tmp< volScalarField > distanceSensitivities()
Sensitivity terms resulting from the differentiation of the distance field. Misses dxdb...
tmp< volScalarField > fv1(const volScalarField &chi) const
A class for managing temporary objects.
tmp< volScalarField > allocateMask()
Allocate the mask field.
virtual tmp< volTensorField > FISensitivityTerm()
Term contributing to the computation of FI-based sensitivities.
tmp< volVectorField > conservativeMomentumSource()
Conservative source term for the adjoint momentum equations.
tmp< volScalarField > dfw_dDelta(const volScalarField &Stilda, const volScalarField &dfwdr, const volScalarField &dStildadDelta) const
const volScalarField & nut() const
Return the turbulence viscosity.
bool limitAdjointProduction_
Whether to limit the adjoint production term to enhance stability.