118 #ifndef externalCoupledMixedFvPatchField_H 119 #define externalCoupledMixedFvPatchField_H 136 class externalCoupledMixedFvPatchField
138 public mixedFvPatchField<Type>
146 typedef externalCoupledMixedFvPatchField<Type>
patchType;
147 typedef GeometricField<Type, fvPatchField, volMesh> volFieldType;
162 label calcFrequency_;
165 bool initByExternal_;
187 void initialise(
const fileName& transferFile);
190 void setMaster(
const labelList& patchIDs);
202 void createLockFile()
const;
205 void removeLockFile()
const;
208 void startWait()
const;
214 void initialiseRead(
IFstream& is)
const;
This boundary condition provides an interface to an external application. Values are transferred as p...
virtual void transferData(OFstream &os) const
Transfer data for external source.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
A class for handling file names.
void writeGeometry() const
Write the geometry to the comms dir.
A list of keyword definitions, which are a keyword followed by any number of values (e...
commsTypes
Types of communications.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual ~externalCoupledMixedFvPatchField()
Destructor.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
bool master() const
Return the master flag.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::commsTypes::blocking)
Evaluate the patch field.
TypeName("externalCoupled")
Runtime type information.
virtual tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
virtual void writeHeader(OFstream &os) const
Write header to transfer file.
A class for handling words, derived from string.
static string patchKey
Name of patch key, e.g. '# Patch:' when looking for start of patch data.
Foam::fvPatchFieldMapper.
static word lockName
Name of lock file.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
virtual void readData(const fileName &transferFile)
Read data from external source.
virtual void writeData(const fileName &transferFile) const
Write data for external source - calls transferData.
externalCoupledMixedFvPatchField(const fvPatch &, const DimensionedField< Type, volMesh > &)
Construct from patch and internal field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
bool log() const
Return the log flag.
A class for managing temporary objects.
const word & patchType() const
Optional patch type.
virtual void write(Ostream &) const
Write.