115 #ifndef externalCoupledMixedFvPatchField_H 116 #define externalCoupledMixedFvPatchField_H 133 class externalCoupledMixedFvPatchField
135 public mixedFvPatchField<Type>
140 typedef externalCoupledMixedFvPatchField<Type>
patchType;
141 typedef GeometricField<Type, fvPatchField, volMesh> volFieldType;
156 label calcFrequency_;
159 bool initByExternal_;
169 List<List<label>> offsets_;
181 void initialise(
const fileName& transferFile);
184 void setMaster(
const labelList& patchIDs);
196 void createLockFile()
const;
199 void removeLockFile()
const;
202 void startWait()
const;
208 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.
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.