44 boundaryAdjointContribution,
45 boundaryAdjointContributionIncompressible,
52 boundaryAdjointContributionIncompressible::
53 boundaryAdjointContributionIncompressible
55 const word& managerName,
56 const word& adjointSolverName,
57 const word& simulationType,
103 source += adjointRAS().adjointMomentumBCSource()[
patch_.
index()];
125 adjointRAS().adjointMomentumBCSource()[
patch_.
index()];
150 adjointRAS().adjointMomentumBCSource()[
patch_.
index()];
155 source += adjointTurbulenceContr - (adjointTurbulenceContr & nf)*nf;
269 <<
"no abstract thermalDiffusion is implemented. Returning zero field";
const fvsPatchScalarField & phiab() const
tmp< vectorField > velocitySource()
const volScalarField & paInst() const
Return const reference to pressure.
const word adjointSolverName() const
virtual const incompressibleAdjointVars & getAdjointVars() const
Access to the incompressible adjoint variables set.
const boundaryScalarField & boundarydJdT()
Objective partial deriv wrt temperature for all patches.
PtrList< objective > & getObjectiveFunctions()
Return reference to objective functions.
const fvPatchScalarField & turbulentDiffusivity() const
const fvPatchVectorField & Ub() const
tmp< scalarField > wallDistance()
T & ref() const
Return non-const reference to the contents of a non-null managed pointer.
tmp< vectorField > nf() const
Return face normals.
class for managing incompressible objective functions.
objectiveManager & objectiveManager_
tmp< scalarField > pressureSource()
const incompressibleVars & primalVars_
Addressing for all faces on surface of mesh. Can either be read from polyMesh or from triSurface...
ThermalDiffusivity< CompressibleTurbulenceModel< fluidThermo > > turbulenceModel
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const word primalSolverName() const
Abstract base class with a fat-interface to all derived classes covering all possible ways in which t...
tmp< scalarField > adjointTMVariable1Source()
tmp< scalarField > TMVariable2()
tmp< scalarField > adjointTMVariable2Source()
Abstract base class for turbulence models (RAS, LES and laminar).
Macros for easy insertion into run-time selection tables.
Class including all adjoint fields for incompressible flows.
Base class for incompressibleAdjoint solvers.
const boundaryScalarField & boundarydJdTMvar2()
Objective partial deriv wrt turbulence model var 2 for all patches.
tmp< scalarField > laminarDiffusivity()
const fvPatchScalarField & pab() const
const surfaceScalarField & phi() const
Return const reference to volume flux.
Base class for solution control classes.
const boundaryScalarField & boundarydJdTMvar1()
Objective partial deriv wrt turbulence model var 1 for all patches.
const boundaryScalarField & boundarydJdvn()
Objective partial deriv wrt normal velocity for all patches.
A class for handling words, derived from Foam::string.
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
const boundaryTensorField & boundarydJdGradU()
Objective partial deriv wrt gradU.
const fvPatchVectorField & Uab() const
const volScalarField & p() const
Return const reference to pressure.
tmp< scalarField > dJdnut()
tmp< scalarField > energySource()
const incompressibleAdjointSolver & adjointSolver_
Note: getting a reference to the adjoint vars in the constructor of boundaryAdjointContributionIncomp...
const autoPtr< incompressibleAdjoint::adjointRASModel > & adjointTurbulence() const
Return const reference to the adjointRASModel.
tmp< scalarField > momentumDiffusion()
const word & solverName() const
Return solver name.
const incompressibleVars & primalVars() const
const boundaryVectorField & boundarydJdp()
Objective partial deriv wrt pressure (times normal) for all patches.
tmp< Field< returnType > > sumContributions(PtrList< sourceType > &sourceList, const fvPatchField< returnType > &(castType::*boundaryFunction)(const label))
const volVectorField & U() const
Return const reference to velocity.
Abstract base class for computing contributions of the objective functions to the adjoint boundary co...
virtual label size() const
Return size.
const boundaryVectorField & boundarydJdvt()
Objective partial deriv wrt tangent velocity for all patches.
tmp< tensorField > dJdGradU()
tmp< scalarField > TMVariable1()
defineTypeNameAndDebug(combustionModel, 0)
tmp< scalarField > thermalDiffusion()
tmp< vectorField > normalVelocitySource()
const autoPtr< incompressible::RASModelVariables > & RASModelVariables() const
Return const reference to the turbulence model variables.
tmp< scalarField > TMVariable1Diffusion()
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
const volVectorField & UaInst() const
Return const reference to velocity.
const surfaceScalarField & phiaInst() const
Return const reference to volume flux.
#define WarningInFunction
Report a warning using Foam::Warning.
const boundaryScalarField & boundarydJdnut()
Objective partial deriv wrt nut for all patches.
const fvsPatchScalarField & phib() const
const std::string patch
OpenFOAM patch number as a std::string.
const incompressibleAdjointVars & adjointVars() const
const autoPtr< incompressible::turbulenceModel > & turbulence() const
Return const reference to the turbulence model.
const fvPatchScalarField & pb() const
Pointer management similar to std::unique_ptr, with some additional methods and type checking...
tmp< vectorField > tangentVelocitySource()
A class for managing temporary objects.
label index() const noexcept
Return the index of this patch in the fvBoundaryMesh.
objectiveManager & getObjectiveManager()
An abstract base class with a fat-interface to all derived classes covering all possible ways in whic...
const Boundary & boundaryField() const noexcept
Return const-reference to the boundary field.
const boundaryVectorField & boundarydJdv()
Objective partial deriv wrt velocity for all patches.
tmp< scalarField > TMVariable2Diffusion()
static constexpr const zero Zero
Global zero (0)