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...
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.
const word & patchType() const
Optional patch type.
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.
virtual void evaluate(const Pstream::commsTypes commsType=Pstream::blocking)
Evaluate the patch field.
bool log() const
Return the log flag.
TypeName("externalCoupled")
Runtime type information.
void writeGeometry() const
Write the geometry to the comms dir.
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 tmp< fvPatchField< Type > > clone() const
Construct and return a clone.
virtual void readData(const fileName &transferFile)
Read data from external source.
virtual void writeHeader(OFstream &os) const
Write header to transfer file.
virtual void write(Ostream &) const
Write.
bool master() const
Return the master flag.
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...
A class for managing temporary objects.
virtual void writeData(const fileName &transferFile) const
Write data for external source - calls transferData.
virtual void transferData(OFstream &os) const
Transfer data for external source.