34 template<
class CloudType>
40 this->
log = owner_.solution().log();
44 template<
class CloudType>
50 const word& modelType,
56 owner.outputProperties(),
64 this->
log = owner_.solution().log();
68 template<
class CloudType>
71 const word& modelName,
81 owner.outputProperties(),
88 this->
log = owner_.solution().log();
92 template<
class CloudType>
101 this->
log = owner_.solution().log();
107 template<
class CloudType>
114 template<
class CloudType>
121 template<
class CloudType>
126 && owner_.solution().transient()
127 && owner_.db().time().writeTime();
131 template<
class CloudType>
134 if (modelName_ != word::null)
136 return cloud::prefix/owner_.
name()/modelName_;
139 return cloud::prefix/owner_.name()/baseName_;
143 template<
class CloudType>
146 this->
log = owner_.solution().log();
150 template<
class CloudType>
153 os.writeEntry(
"owner", owner_.name());
virtual void info()
Write to info.
A class for handling file names.
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
CloudSubModelBase(CloudType &owner)
Construct null from owner cloud.
Base class for cloud sub-models.
virtual void write(Ostream &os) const
Write to os.
virtual bool writeTime() const
Flag to indicate when to write a property.
const CloudType & owner() const
Return const access to the owner cloud.
void write(vtk::formatter &fmt, const Type &val, const label n=1)
Component-wise write of a value (N times)
A class for handling words, derived from Foam::string.
virtual fileName localPath() const
Output directory.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
static std::string name(const std::string &str)
Return basename (part beyond last /), including its extension.
OBJstream os(runTime.globalPath()/outputName)
Base class for generic sub-models requiring to be read from dictionary. Provides a mechanism to read ...
Templated base class for dsmc cloud.