40 ignitionSiteDict_(is),
41 location_(ignitionSiteDict_.lookup(
"location")),
42 diameter_(
readScalar(ignitionSiteDict_.lookup(
"diameter"))),
54 readScalar(ignitionSiteDict_.lookup(
"duration"))
57 strength_(
readScalar(ignitionSiteDict_.lookup(
"strength"))),
58 timeIndex_(db_.timeIndex())
61 is.
check(
"ignitionSite::ignitionSite(Istream&)");
63 findIgnitionCells(mesh_);
76 ignitionSiteDict_(is),
77 location_(ignitionSiteDict_.lookup(
"location")),
78 diameter_(
readScalar(ignitionSiteDict_.lookup(
"diameter"))),
93 strength_(
readScalar(ignitionSiteDict_.lookup(
"strength"))),
94 timeIndex_(db_.timeIndex())
97 is.
check(
"ignitionSite::ignitionSite(Istream&)");
99 findIgnitionCells(mesh_);
scalar degToTime(const scalar theta) const
Convert degrees to seconds (for given engine speed in RPM)
An Istream is an abstract base class for all input systems (streams, files, token lists etc)...
ignitionSite(Istream &, const Time &, const fvMesh &)
Construct from Istream and database.
virtual bool check(const char *operation) const
Check IOstream status for given operation.
Manage time in terms of engine RPM and crank-angle.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Mesh data needed to do the Finite Volume discretisation.