35bool Foam::functionObjects::zeroGradient::accept
37 const GeometricField<Type, fvPatchField, volMesh>& input
40 for (
const auto& pfld : input.boundaryField())
53int Foam::functionObjects::zeroGradient::apply
55 const word& inputName,
59 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
64 if (state || !foundObject<VolFieldType>(inputName))
69 const VolFieldType& input = lookupObject<VolFieldType>(inputName);
81 results_.set(
outputName, VolFieldType::typeName);
97 dimensioned<Type>(input.dimensions(),
Zero),
104 VolFieldType& output = lookupObjectRef<VolFieldType>(
outputName);
107 output.correctBoundaryConditions();
@ REGISTER
Request registration (bool: true).
@ NO_READ
Nothing to be read.
@ NO_WRITE
Ignore writing from objectRegistry::writeObject().
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
static bool constraintType(const word &patchType)
Return true if the given type is a constraint type.
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
word outputName("finiteArea-edges.obj")
bool returnReduceOr(const bool value, const int communicator=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
static constexpr const zero Zero
Global zero (0).