35 bool Foam::functionObjects::zeroGradient::accept
37 const GeometricField<Type, fvPatchField, volMesh>&
input 55 int Foam::functionObjects::zeroGradient::apply
57 const word& inputName,
61 typedef GeometricField<Type, fvPatchField, volMesh> VolFieldType;
66 if (state || !foundObject<VolFieldType>(inputName))
71 const VolFieldType&
input = lookupObject<VolFieldType>(inputName);
83 results_.set(
outputName, VolFieldType::typeName);
99 dimensioned<Type>(
input.dimensions(),
Zero),
109 output.correctBoundaryConditions();
static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
Ignore writing from objectRegistry::writeObject()
#define forAll(list, i)
Loop across all elements in list.
word outputName("finiteArea-edges.obj")
static Istream & input(Istream &is, IntRange< T > &range)
virtual const word & type() const =0
Runtime type information.
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.
const polyBoundaryMesh & patches
const std::string patch
OpenFOAM patch number as a std::string.
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)