35 bool Foam::functionObjects::zeroGradient::accept
37 const GeometricField<Type, fvPatchField, volMesh>&
input 40 for (
const auto& pfld :
input.boundaryField())
53 int 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),
107 output.correctBoundaryConditions();
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
Ignore writing from objectRegistry::writeObject()
word outputName("finiteArea-edges.obj")
static Istream & input(Istream &is, IntRange< T > &range)
static tmp< T > New(Args &&... args)
Construct tmp with forwarding arguments.
static bool constraintType(const word &patchType)
Return true if the given type is a constraint type.
static Ostream & output(Ostream &os, const IntRange< T > &range)
bool returnReduceOr(const bool value, const label comm=UPstream::worldComm)
Perform logical (or) MPI Allreduce on a copy. Uses UPstream::reduceOr.
Request registration (bool: true)
static constexpr const zero Zero
Global zero (0)