Go to the documentation of this file.
54 meshShape_.time().timeName(),
63 for (
const label patchI : sensitivityPatchIDs_)
84 meshShape_.time().timeName(),
94 for (
const label patchI : sensitivityPatchIDs_)
101 pointSensField.primitiveFieldRef(),
102 sensFieldPtr()[patchI]
106 pointSensField.write();
128 meshShape_.time().timeName(),
141 volSensFieldbf = volSensField.boundaryFieldRef();
143 forAll(sensitivityPatchIDs_, pI)
145 const label patchI = sensitivityPatchIDs_[pI];
146 volSensFieldbf[patchI] = sensFieldPtr()[patchI];
149 return tVolSensField;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
void constructAndWriteSensitivityField(const autoPtr< typename GeometricField< Type, fvPatchField, volMesh >::Boundary > &sensFieldPtr, const word &name) const
Constructs volField based on boundaryField and writes it.
A class for handling words, derived from Foam::string.
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
static const pointMesh & New(const polyMesh &mesh, Args &&... args)
Get existing or create a new MeshObject.
#define forAll(list, i)
Loop across all elements in list.
Generic templated field type.
void constructAndWriteSensitivtyPointField(const autoPtr< List< Field< Type >>> &sensFieldPtr, const word &name) const
Constructs pointField based on boundaryField and writes it.
tmp< GeometricField< Type, fvPatchField, volMesh > > constructVolSensitivtyField(const autoPtr< typename GeometricField< Type, fvPatchField, volMesh >::Boundary > &sensFieldPtr, const word &name) const
Constructs volField based on boundaryField and writes it.
Generic dimensioned Type class.
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
Internal & ref(const bool updateAccessTime=true)
Return a reference to the dimensioned internal field.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
A traits class, which is primarily used for primitives.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
Generic GeometricField class.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
const dimensionSet dimless
Dimensionless.