remove fvCFD.H usage from remaining library source

- exception calcType.H since it'll most likely be used for building
  applications anyhow

- use quailified names in more of the lagrangian code

- killed some tab indents in various places.
This commit is contained in:
Mark Olesen
2009-12-02 15:34:52 +01:00
parent 2f8c7782f4
commit 00985638d8
91 changed files with 829 additions and 1155 deletions

View File

@ -6,5 +6,5 @@ EXE_INC = \
EXE_LIBS = \ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-lbasicThermophysicalModels \ -lbasicThermophysicalModels \
-lspecie -lspecie

View File

@ -1,5 +1,5 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/errorEstimation/lnInclude -I$(LIB_SRC)/errorEstimation/lnInclude
EXE_LIBS = \ EXE_LIBS = \

View File

@ -1,5 +1,5 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/errorEstimation/lnInclude -I$(LIB_SRC)/errorEstimation/lnInclude
EXE_LIBS = \ EXE_LIBS = \

View File

@ -1,5 +1,5 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/errorEstimation/lnInclude -I$(LIB_SRC)/errorEstimation/lnInclude
EXE_LIBS = \ EXE_LIBS = \

View File

@ -1,5 +1,5 @@
EXE_INC = \ EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude \ -I$(LIB_SRC)/finiteVolume/lnInclude \
-I$(LIB_SRC)/errorEstimation/lnInclude -I$(LIB_SRC)/errorEstimation/lnInclude
EXE_LIBS = \ EXE_LIBS = \

View File

@ -198,8 +198,11 @@ void ReadVertices
int dims = 1; int dims = 1;
float scale; float scale;
CCMIOID mapID; CCMIOID mapID;
CCMIOReadVerticesf(&err, vertices, &dims, &scale, &mapID, verts.begin(), CCMIOReadVerticesf
offset, offsetPlusSize); (
&err, vertices, &dims, &scale, &mapID, verts.begin(),
offset, offsetPlusSize
);
CCMIOReadMap(&err, mapID, mapData.begin(), offset, offsetPlusSize); CCMIOReadMap(&err, mapID, mapData.begin(), offset, offsetPlusSize);
//CCMIOSize size; //CCMIOSize size;
@ -245,35 +248,34 @@ void ReadProblem
== kCCMIONoErr == kCCMIONoErr
) )
{ {
char *name; char *name;
int size; int size;
int cellType; int cellType;
// ... if it has a material type. (Note that we do not pass in // ... if it has a material type. (Note that we do not pass in
// an array to get the name because we do not know how long the // an array to get the name because we do not know how long the
// string is yet. Many parameters to CCMIO functions that // string is yet. Many parameters to CCMIO functions that
// return // return
// data can be NULL if that data is not needed.) // data can be NULL if that data is not needed.)
if if
( (
CCMIOReadOptstr(NULL, next, "MaterialType", &size, NULL) CCMIOReadOptstr(NULL, next, "MaterialType", &size, NULL)
== kCCMIONoErr == kCCMIONoErr
) )
{ {
name = new char[size + 1]; name = new char[size + 1];
CCMIOReadOptstr(&err, next, "MaterialType", &size, name); CCMIOReadOptstr(&err, next, "MaterialType", &size, name);
CCMIOGetEntityIndex(&err, next, &cellType); CCMIOGetEntityIndex(&err, next, &cellType);
foamCellTypeNames.insert(cellType, name); foamCellTypeNames.insert(cellType, name);
Pout<< "Celltype:" << cellType << " name:" << name << endl; Pout<< "Celltype:" << cellType << " name:" << name << endl;
delete [] name; delete [] name;
} }
} }
// ... walk through each region description and print it... // ... walk through each region description and print it...
CCMIOID boundary; CCMIOID boundary;
label regionI = 0; label regionI = 0;
int k = 0; int k = 0;
@ -320,13 +322,13 @@ void ReadProblem
CCMIOReadOptstr(NULL, boundary, "BoundaryType", &size, NULL) CCMIOReadOptstr(NULL, boundary, "BoundaryType", &size, NULL)
== kCCMIONoErr == kCCMIONoErr
) )
{ {
char* s = new char[size + 1]; char* s = new char[size + 1];
CCMIOReadOptstr(NULL, boundary, "BoundaryType", &size, s); CCMIOReadOptstr(NULL, boundary, "BoundaryType", &size, s);
s[size] = '\0'; s[size] = '\0';
foamPatchTypes[foamPatchI] = string::validate<word>(string(s)); foamPatchTypes[foamPatchI] = string::validate<word>(string(s));
delete [] s; delete [] s;
} }
//foamPatchMap.append(prostarI); //foamPatchMap.append(prostarI);
@ -342,28 +344,28 @@ void ReadProblem
CCMIOReadOptstr(NULL, boundary, "BoundaryName", &size, NULL) CCMIOReadOptstr(NULL, boundary, "BoundaryName", &size, NULL)
== kCCMIONoErr == kCCMIONoErr
) )
{ {
char* name = new char[size + 1]; char* name = new char[size + 1];
CCMIOReadOptstr(NULL, boundary, "BoundaryName", &size, name); CCMIOReadOptstr(NULL, boundary, "BoundaryName", &size, name);
name[size] = '\0'; name[size] = '\0';
foamPatchNames[foamPatchI] = string::validate<word>(string(name)); foamPatchNames[foamPatchI] = string::validate<word>(string(name));
delete [] name; delete [] name;
} }
else if else if
( (
CCMIOReadOptstr(NULL, boundary, "Label", &size, NULL) CCMIOReadOptstr(NULL, boundary, "Label", &size, NULL)
== kCCMIONoErr == kCCMIONoErr
) )
{ {
char* name = new char[size + 1]; char* name = new char[size + 1];
CCMIOReadOptstr(NULL, boundary, "Label", &size, name); CCMIOReadOptstr(NULL, boundary, "Label", &size, name);
name[size] = '\0'; name[size] = '\0';
foamPatchNames[foamPatchI] = string::validate<word>(string(name)); foamPatchNames[foamPatchI] = string::validate<word>(string(name));
delete [] name; delete [] name;
} }
else else
{ {
foamPatchNames[foamPatchI] = foamPatchNames[foamPatchI] =
foamPatchTypes[foamPatchI] foamPatchTypes[foamPatchI]
+ Foam::name(foamPatchI); + Foam::name(foamPatchI);
Pout<< "Made up name:" << foamPatchNames[foamPatchI] Pout<< "Made up name:" << foamPatchNames[foamPatchI]
@ -440,8 +442,8 @@ void ReadCells
== kCCMIONoErr == kCCMIONoErr
) )
{ {
CCMIOSize size; CCMIOSize size;
CCMIOEntitySize(&err, id, &size, NULL); CCMIOEntitySize(&err, id, &size, NULL);
Pout<< "Read kCCMIOBoundaryFaces entry with " << size Pout<< "Read kCCMIOBoundaryFaces entry with " << size
<< " faces." << endl; << " faces." << endl;
@ -461,13 +463,13 @@ void ReadCells
CCMIOGetEntity(&err, topology, kCCMIOInternalFaces, 0, &id); CCMIOGetEntity(&err, topology, kCCMIOInternalFaces, 0, &id);
CCMIOSize size; CCMIOSize size;
CCMIOReadFaces(&err, id, kCCMIOInternalFaces, NULL, &size, NULL, CCMIOReadFaces(&err, id, kCCMIOInternalFaces, NULL, &size, NULL,
kCCMIOStart, kCCMIOEnd); kCCMIOStart, kCCMIOEnd);
std::vector<int> faces(size); std::vector<int> faces(size);
CCMIOReadFaces(&err, id, kCCMIOInternalFaces, &mapID, NULL, &faces[0], CCMIOReadFaces(&err, id, kCCMIOInternalFaces, &mapID, NULL, &faces[0],
kCCMIOStart, kCCMIOEnd); kCCMIOStart, kCCMIOEnd);
std::vector<int> faceCells(2*nInternalFaces); std::vector<int> faceCells(2*nInternalFaces);
CCMIOReadFaceCells(&err, id, kCCMIOInternalFaces, &faceCells[0], CCMIOReadFaceCells(&err, id, kCCMIOInternalFaces, &faceCells[0],
kCCMIOStart, kCCMIOEnd); kCCMIOStart, kCCMIOEnd);
CCMIOReadMap(&err, mapID, &mapData[0], kCCMIOStart, kCCMIOEnd); CCMIOReadMap(&err, mapID, &mapData[0], kCCMIOStart, kCCMIOEnd);
CheckError(err, "Error reading internal faces"); CheckError(err, "Error reading internal faces");
@ -505,19 +507,19 @@ void ReadCells
) )
{ {
CCMIOSize nFaces; CCMIOSize nFaces;
CCMIOEntitySize(&err, id, &nFaces, NULL); CCMIOEntitySize(&err, id, &nFaces, NULL);
mapData.resize(nFaces); mapData.resize(nFaces);
faceCells.resize(nFaces); faceCells.resize(nFaces);
CCMIOReadFaces(&err, id, kCCMIOBoundaryFaces, NULL, &size, NULL, CCMIOReadFaces(&err, id, kCCMIOBoundaryFaces, NULL, &size, NULL,
kCCMIOStart, kCCMIOEnd); kCCMIOStart, kCCMIOEnd);
faces.resize(size); faces.resize(size);
CCMIOReadFaces(&err, id, kCCMIOBoundaryFaces, &mapID, NULL, &faces[0], CCMIOReadFaces(&err, id, kCCMIOBoundaryFaces, &mapID, NULL, &faces[0],
kCCMIOStart, kCCMIOEnd); kCCMIOStart, kCCMIOEnd);
CCMIOReadFaceCells(&err, id, kCCMIOBoundaryFaces, &faceCells[0], CCMIOReadFaceCells(&err, id, kCCMIOBoundaryFaces, &faceCells[0],
kCCMIOStart, kCCMIOEnd); kCCMIOStart, kCCMIOEnd);
CCMIOReadMap(&err, mapID, &mapData[0], kCCMIOStart, kCCMIOEnd); CCMIOReadMap(&err, mapID, &mapData[0], kCCMIOStart, kCCMIOEnd);
CheckError(err, "Error reading boundary faces"); CheckError(err, "Error reading boundary faces");
// Read prostar id // Read prostar id
int prostarI; int prostarI;
@ -672,9 +674,9 @@ int main(int argc, char *argv[])
if (err != kCCMIONoErr) if (err != kCCMIONoErr)
{ {
// Maybe no solution; try again // Maybe no solution; try again
err = kCCMIONoErr; err = kCCMIONoErr;
CCMIOReadProcessor CCMIOReadProcessor
( (
&err, &err,
processor, processor,
@ -683,12 +685,12 @@ int main(int argc, char *argv[])
NULL, NULL,
NULL NULL
); );
if (err != kCCMIONoErr) if (err != kCCMIONoErr)
{ {
FatalErrorIn(args.executable()) FatalErrorIn(args.executable())
<< "Could not read the file." << "Could not read the file."
<< exit(FatalError); << exit(FatalError);
} }
} }
ReadVertices(err, vertices, foamPointMap, foamPoints); ReadVertices(err, vertices, foamPointMap, foamPoints);

View File

@ -30,33 +30,34 @@ Description
and run tetgen with -f option. and run tetgen with -f option.
Sample smesh file: Sample smesh file:
@verbatim
# cube.smesh -- A 10x10x10 cube # cube.smesh -- A 10x10x10 cube
8 3 8 3
1 0 0 0 1 0 0 0
2 0 10 0 2 0 10 0
3 10 10 0 3 10 10 0
4 10 0 0 4 10 0 0
5 0 0 10 5 0 0 10
6 0 10 10 6 0 10 10
7 10 10 10 7 10 10 10
8 10 0 10 8 10 0 10
6 1 # 1 for boundary info present 6 1 # 1 for boundary info present
4 1 2 3 4 11 # region number 11 4 1 2 3 4 11 # region number 11
4 5 6 7 8 21 # region number 21 4 5 6 7 8 21 # region number 21
4 1 2 6 5 3 4 1 2 6 5 3
4 4 3 7 8 43 4 4 3 7 8 43
4 1 5 8 4 5 4 1 5 8 4 5
4 2 6 7 3 65 4 2 6 7 3 65
0 0
0 0
@endverbatim
NOTE: Note
- for some reason boundary faces point inwards. I just reverse them - for some reason boundary faces point inwards. I just reverse them
always. Might use some geometric check instead. always. Might use some geometric check instead.
- marked faces might not actually be boundary faces of mesh. - marked faces might not actually be boundary faces of mesh.
This is hopefully handled now by first constructing without boundaries This is hopefully handled now by first constructing without boundaries
and then reconstructing with boundary faces. and then reconstructing with boundary faces.
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/

View File

@ -3,5 +3,5 @@ EXE_INC = \
-I$(LIB_SRC)/meshTools/lnInclude -I$(LIB_SRC)/meshTools/lnInclude
EXE_LIBS = \ EXE_LIBS = \
-ldynamicMesh \ -ldynamicMesh \
-lmeshTools -lmeshTools

View File

@ -34,12 +34,10 @@ License
#include "OFstream.H" #include "OFstream.H"
#include "IOmanip.H" #include "IOmanip.H"
namespace Foam
{
// * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Global Functions * * * * * * * * * * * * * //
void ensightCaseEntry void Foam::ensightCaseEntry
( (
OFstream& caseFile, OFstream& caseFile,
const string& ensightType, const string& ensightType,
@ -89,7 +87,7 @@ void ensightCaseEntry
} }
void ensightParticlePositions void Foam::ensightParticlePositions
( (
const polyMesh& mesh, const polyMesh& mesh,
const fileName& dataDir, const fileName& dataDir,
@ -113,7 +111,7 @@ void ensightParticlePositions
os.newline(); os.newline();
os.write("particle coordinates"); os.write("particle coordinates");
os.newline(); os.newline();
os.write(parcels.size(), 8); // unusual width os.write(parcels.size(), 8); // unusual width
os.newline(); os.newline();
// binary write is Ensight6 - first ids, then positions // binary write is Ensight6 - first ids, then positions
@ -141,7 +139,7 @@ void ensightParticlePositions
{ {
const vector& p = elmnt().position(); const vector& p = elmnt().position();
os.write(++nParcels, 8); // unusual width os.write(++nParcels, 8); // unusual width
os.write(p.x()); os.write(p.x());
os.write(p.y()); os.write(p.y());
os.write(p.z()); os.write(p.z());
@ -153,7 +151,7 @@ void ensightParticlePositions
template<class Type> template<class Type>
void ensightLagrangianField void Foam::ensightLagrangianField
( (
const IOobject& fieldObject, const IOobject& fieldObject,
const fileName& dataDir, const fileName& dataDir,
@ -211,7 +209,7 @@ void ensightLagrangianField
//- write generalized field components //- write generalized field components
template <class Type> template <class Type>
void ensightVolField void Foam::ensightVolField
( (
const ensightParts& partsList, const ensightParts& partsList,
const IOobject& fieldObject, const IOobject& fieldObject,
@ -241,9 +239,5 @@ void ensightVolField
); );
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -1195,16 +1195,15 @@ void register_data_readers()
/* /*
** like this for combined unstructured grids & results in a single file ** like this for combined unstructured grids & results in a single file
*/ */
reg_single_unstruct_reader ( reg_single_unstruct_reader
"Foam Reader", /* title you want for data reader */ (
user_query_file_function, /* whatever you called this */ "Foam Reader", /* title you want for data reader */
user_read_one_grid_function /* whatever you called this */ user_query_file_function, /* whatever you called this */
); user_read_one_grid_function /* whatever you called this */
);
} }
} }

View File

@ -38,9 +38,9 @@ setFormat raw;
surfaceFormat vtk; surfaceFormat vtk;
// interpolationScheme. choice of // interpolationScheme. choice of
// cell : use cell-centre value only; constant over cells (default) // cell : use cell-centre value only; constant over cells (default)
// cellPoint : use cell-centre and vertex values // cellPoint : use cell-centre and vertex values
// cellPointFace : use cell-centre, vertex and face values. // cellPointFace : use cell-centre, vertex and face values.
// 1] vertex values determined from neighbouring cell-centre values // 1] vertex values determined from neighbouring cell-centre values
// 2] face values determined using the current face interpolation scheme // 2] face values determined using the current face interpolation scheme
// for the field (linear, gamma, etc.) // for the field (linear, gamma, etc.)

View File

@ -223,7 +223,7 @@ void mapLagrangian(const meshToMesh& meshToMeshInterp)
{ {
unmappedSource.erase(sourceParticleI); unmappedSource.erase(sourceParticleI);
addParticles.append(sourceParticleI); addParticles.append(sourceParticleI);
iter().cell()=targetCell; iter().cell()=targetCell;
targetParcels.addParticle targetParcels.addParticle
( (
sourceParcels.remove(&iter()) sourceParcels.remove(&iter())

View File

@ -25,10 +25,10 @@ License
Description Description
Surface coarsening using 'bunnylod': Surface coarsening using 'bunnylod':
Polygon Reduction Demo Polygon Reduction Demo
By Stan Melax (c) 1998 By Stan Melax (c) 1998
mailto:melax@cs.ualberta.ca mailto:melax@cs.ualberta.ca
http://www.cs.ualberta.ca/~melax http://www.cs.ualberta.ca/~melax
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -55,7 +55,7 @@ int mapVertex(::List<int>& collapse_map, int a, int mx)
} }
while (a >= mx) while (a >= mx)
{ {
a = collapse_map[a]; a = collapse_map[a];
} }
return a; return a;
} }

View File

@ -192,7 +192,7 @@ SunOS)
export WM_MPLIB=FJMPI export WM_MPLIB=FJMPI
;; ;;
*) # an unsupported operating system *) # an unsupported operating system
cat <<USAGE cat <<USAGE
Your "$WM_ARCH" operating system is not supported by this release Your "$WM_ARCH" operating system is not supported by this release

View File

@ -29,10 +29,9 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(Foam::RK, 0);
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(Foam::RK, 0);
addToRunTimeSelectionTable(ODESolver, RK, ODE); addToRunTimeSelectionTable(ODESolver, RK, ODE);
const scalar const scalar
@ -85,28 +84,28 @@ void Foam::RK::solve
{ {
forAll(yTemp_, i) forAll(yTemp_, i)
{ {
yTemp_[i] = y[i] + b21*h*dydx[i]; yTemp_[i] = y[i] + b21*h*dydx[i];
} }
ode.derivatives(x + a2*h, yTemp_, ak2_); ode.derivatives(x + a2*h, yTemp_, ak2_);
forAll(yTemp_, i) forAll(yTemp_, i)
{ {
yTemp_[i] = y[i] + h*(b31*dydx[i] + b32*ak2_[i]); yTemp_[i] = y[i] + h*(b31*dydx[i] + b32*ak2_[i]);
} }
ode.derivatives(x + a3*h, yTemp_, ak3_); ode.derivatives(x + a3*h, yTemp_, ak3_);
forAll(yTemp_, i) forAll(yTemp_, i)
{ {
yTemp_[i] = y[i] + h*(b41*dydx[i] + b42*ak2_[i] + b43*ak3_[i]); yTemp_[i] = y[i] + h*(b41*dydx[i] + b42*ak2_[i] + b43*ak3_[i]);
} }
ode.derivatives(x + a4*h, yTemp_, ak4_); ode.derivatives(x + a4*h, yTemp_, ak4_);
forAll(yTemp_, i) forAll(yTemp_, i)
{ {
yTemp_[i] = y[i] yTemp_[i] = y[i]
+ h*(b51*dydx[i] + b52*ak2_[i] + b53*ak3_[i] + b54*ak4_[i]); + h*(b51*dydx[i] + b52*ak2_[i] + b53*ak3_[i] + b54*ak4_[i]);
} }
@ -114,7 +113,7 @@ void Foam::RK::solve
forAll(yTemp_, i) forAll(yTemp_, i)
{ {
yTemp_[i] = y[i] yTemp_[i] = y[i]
+ h* + h*
( (
b61*dydx[i] + b62*ak2_[i] + b63*ak3_[i] b61*dydx[i] + b62*ak2_[i] + b63*ak3_[i]
@ -126,13 +125,13 @@ void Foam::RK::solve
forAll(yout, i) forAll(yout, i)
{ {
yout[i] = y[i] yout[i] = y[i]
+ h*(c1*dydx[i] + c3*ak3_[i] + c4*ak4_[i] + c6*ak6_[i]); + h*(c1*dydx[i] + c3*ak3_[i] + c4*ak4_[i] + c6*ak6_[i]);
} }
forAll(yerr, i) forAll(yerr, i)
{ {
yerr[i] = yerr[i] =
h* h*
( (
dc1*dydx[i] + dc3*ak3_[i] + dc4*ak4_[i] dc1*dydx[i] + dc3*ak3_[i] + dc4*ak4_[i]
@ -160,16 +159,16 @@ void Foam::RK::solve
for (;;) for (;;)
{ {
solve(ode, x, y, dydx, h, yTemp2_, yErr_); solve(ode, x, y, dydx, h, yTemp2_, yErr_);
maxErr = 0.0; maxErr = 0.0;
for (register label i=0; i<n_; i++) for (register label i=0; i<n_; i++)
{ {
maxErr = max(maxErr, mag(yErr_[i]/yScale[i])); maxErr = max(maxErr, mag(yErr_[i]/yScale[i]));
} }
maxErr /= eps; maxErr /= eps;
if (maxErr <= 1.0) if (maxErr <= 1.0)
{ {
break; break;
} }
@ -179,7 +178,7 @@ void Foam::RK::solve
h = (h >= 0.0 ? max(hTemp, 0.1*h) : min(hTemp, 0.1*h)); h = (h >= 0.0 ? max(hTemp, 0.1*h) : min(hTemp, 0.1*h));
} }
if (h < VSMALL) if (h < VSMALL)
{ {
FatalErrorIn("RK::solve") FatalErrorIn("RK::solve")
<< "stepsize underflow" << "stepsize underflow"

View File

@ -26,7 +26,7 @@ Class
Foam::RK Foam::RK
Description Description
Foam::RK Runge-Kutta ODE solver
SourceFiles SourceFiles
RKCK.C RKCK.C
@ -53,6 +53,15 @@ class RK
public ODESolver public ODESolver
{ {
// Private data // Private data
static const scalar safety, pGrow, pShrink, errCon;
static const scalar
a2, a3, a4, a5, a6,
b21, b31, b32, b41, b42, b43,
b51, b52, b53, b54, b61, b62, b63, b64, b65,
c1, c3, c4, c6,
dc1, dc3, dc4, dc5, dc6;
mutable scalarField yTemp_; mutable scalarField yTemp_;
mutable scalarField ak2_; mutable scalarField ak2_;
@ -64,16 +73,6 @@ class RK
mutable scalarField yErr_; mutable scalarField yErr_;
mutable scalarField yTemp2_; mutable scalarField yTemp2_;
static const scalar safety, pGrow, pShrink, errCon;
static const scalar
a2, a3, a4, a5, a6,
b21, b31, b32, b41, b42, b43,
b51, b52, b53, b54, b61, b62, b63, b64, b65,
c1, c3, c4, c6,
dc1, dc3, dc4, dc5, dc6;
public: public:
//- Runtime type information //- Runtime type information

View File

@ -22,8 +22,6 @@ License
along with OpenFOAM; if not, write to the Free Software Foundation, along with OpenFOAM; if not, write to the Free Software Foundation,
Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
Description
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include <unistd.h> #include <unistd.h>
@ -44,7 +42,7 @@ unsigned int Foam::timer::oldTimeOut_ = 0;
// * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * // // * * * * * * * * * * * * * Static Member Functions * * * * * * * * * * * * //
void Foam::timer::signalHandler(int) void Foam::timer::signalHandler(int)
{ {
if (debug) if (debug)
{ {
Info<< "Foam::timer::signalHandler(int sig) : " Info<< "Foam::timer::signalHandler(int sig) : "
@ -56,8 +54,6 @@ void Foam::timer::signalHandler(int)
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::timer::timer(const unsigned int newTimeOut) Foam::timer::timer(const unsigned int newTimeOut)
: :
newTimeOut_(newTimeOut) newTimeOut_(newTimeOut)
@ -72,7 +68,7 @@ Foam::timer::timer(const unsigned int newTimeOut)
( (
"Foam::timer::timer(const unsigned int)" "Foam::timer::timer(const unsigned int)"
) << "timer already used." ) << "timer already used."
<< abort(FatalError); << abort(FatalError);
} }
// Install alarm signal handler: // Install alarm signal handler:
@ -80,7 +76,7 @@ Foam::timer::timer(const unsigned int newTimeOut)
// - clear list of signals to mask // - clear list of signals to mask
struct sigaction newAction; struct sigaction newAction;
newAction.sa_handler = timer::signalHandler; newAction.sa_handler = timer::signalHandler;
newAction.sa_flags = SA_NODEFER; newAction.sa_flags = SA_NODEFER;
sigemptyset(&newAction.sa_mask); sigemptyset(&newAction.sa_mask);
if (sigaction(SIGALRM, &newAction, &oldAction_) < 0) if (sigaction(SIGALRM, &newAction, &oldAction_) < 0)
@ -89,7 +85,7 @@ Foam::timer::timer(const unsigned int newTimeOut)
( (
"Foam::timer::timer(const unsigned int)" "Foam::timer::timer(const unsigned int)"
) << "sigaction(SIGALRM) error" ) << "sigaction(SIGALRM) error"
<< abort(FatalError); << abort(FatalError);
} }
oldTimeOut_ = ::alarm(newTimeOut); oldTimeOut_ = ::alarm(newTimeOut);
@ -131,7 +127,7 @@ Foam::timer::~timer()
"Foam::timer::~timer(const struct sigaction&" "Foam::timer::~timer(const struct sigaction&"
"const struct sigaction&)" "const struct sigaction&)"
) << "sigaction(SIGALRM) error" ) << "sigaction(SIGALRM) error"
<< abort(FatalError); << abort(FatalError);
} }
} }
} }

View File

@ -80,7 +80,7 @@ void PrimitivePatchInterpolation<Patch>::makeFaceToPointWeights() const
forAll(curFaces, facei) forAll(curFaces, facei)
{ {
pw[facei] = pw[facei] =
1.0/mag(faces[curFaces[facei]].centre(points) - points[pointi]); 1.0/mag(faces[curFaces[facei]].centre(points) - points[pointi]);
sumw += pw[facei]; sumw += pw[facei];
} }
@ -133,7 +133,7 @@ void PrimitivePatchInterpolation<Patch>::makeFaceToEdgeWeights() const
vector S = points[edges[edgei].start()]; vector S = points[edges[edgei].start()];
vector e = edges[edgei].vec(points); vector e = edges[edgei].vec(points);
scalar alpha = scalar alpha =
-(((N - P)^(S - P))&((N - P)^e))/(((N - P)^e )&((N - P)^e)); -(((N - P)^(S - P))&((N - P)^e))/(((N - P)^e )&((N - P)^e));
vector E = S + alpha*e; vector E = S + alpha*e;
@ -318,7 +318,7 @@ tmp<Field<Type> > PrimitivePatchInterpolation<Patch>::faceToEdgeInterpolate
); );
Field<Type>& result = tresult(); Field<Type>& result = tresult();
const pointField& points = patch_.localPoints(); const pointField& points = patch_.localPoints();
const faceList& faces = patch_.localFaces(); const faceList& faces = patch_.localFaces();
const edgeList& edges = patch_.edges(); const edgeList& edges = patch_.edges();
@ -328,7 +328,7 @@ tmp<Field<Type> > PrimitivePatchInterpolation<Patch>::faceToEdgeInterpolate
for (label edgei = 0; edgei < patch_.nInternalEdges(); edgei++) for (label edgei = 0; edgei < patch_.nInternalEdges(); edgei++)
{ {
result[edgei] = result[edgei] =
weights[edgei]*pf[edgeFaces[edgei][0]] weights[edgei]*pf[edgeFaces[edgei][0]]
+ (1.0 - weights[edgei])*pf[edgeFaces[edgei][1]]; + (1.0 - weights[edgei])*pf[edgeFaces[edgei][1]];
} }

View File

@ -148,13 +148,13 @@ public:
//- Return flux flip map //- Return flux flip map
virtual const labelHashSet& flipFaceFlux() const; virtual const labelHashSet& flipFaceFlux() const;
//- Return number of old internalFaces //- Return number of old internalFaces
virtual label nOldInternalFaces() const; virtual label nOldInternalFaces() const;
//- Return old patch starts //- Return old patch starts
virtual const labelList& oldPatchStarts() const; virtual const labelList& oldPatchStarts() const;
//- Return old patch sizes //- Return old patch sizes
virtual const labelList& oldPatchSizes() const; virtual const labelList& oldPatchSizes() const;
//- Are there any inserted faces //- Are there any inserted faces

View File

@ -282,11 +282,11 @@ bool Pstream::init(int& argc, char**& argv)
// Lock the special resize message // Lock the special resize message
// gamma_mlock // gamma_mlock
// ( // (
// reinterpret_cast<char*>(PstreamGlobals::resizeMessage), // reinterpret_cast<char*>(PstreamGlobals::resizeMessage),
// PstreamGlobals::resizeMessageLen*sizeof(uint64_t) // PstreamGlobals::resizeMessageLen*sizeof(uint64_t)
// ); // );
// Attach current receive buffers // Attach current receive buffers
@ -307,10 +307,10 @@ bool Pstream::init(int& argc, char**& argv)
gamma_my_par_pid(), //unsigned char dest_par_pid, gamma_my_par_pid(), //unsigned char dest_par_pid,
myProcNo_, //unsigned short dest_port, myProcNo_, //unsigned short dest_port,
handler, //callback handler, //callback
procNo, //unsigned short semaphore, procNo, //unsigned short semaphore,
GO_BACK, //unsigned char buffer_kind, GO_BACK, //unsigned char buffer_kind,
buf.begin(), buf.begin(),
buf.size() buf.size()
); );
} }
} }
@ -334,7 +334,7 @@ bool Pstream::init(int& argc, char**& argv)
void Pstream::exit(int errnum) void Pstream::exit(int errnum)
{ {
// gamma_munlockall(); // gamma_munlockall();
gamma_exit(); gamma_exit();
//gamma_abort(); //gamma_abort();
} }
@ -342,8 +342,8 @@ void Pstream::exit(int errnum)
void Pstream::abort() void Pstream::abort()
{ {
Pout<< "**Pstream::abort()**" << endl; Pout<< "**Pstream::abort()**" << endl;
// gamma_munlockall(); // gamma_munlockall();
gamma_abort(); gamma_abort();
} }

View File

@ -13,7 +13,7 @@ chosen to match those used by the ccm-format.
Here is a sample dictionary entry: Here is a sample dictionary entry:
<int> // unique positive int <int> // unique positive int
{ {
Label <word>; // optional Label <word>; // optional
MaterialType <word>; // optional (fluid|solid) MaterialType <word>; // optional (fluid|solid)

View File

@ -394,7 +394,7 @@ void Foam::meshWriters::STARCD::writeBoundary(const fileName& prefix) const
label regionId = patchI; label regionId = patchI;
if (regionId == defaultId) if (regionId == defaultId)
{ {
continue; // skip - already written continue; // skip - already written
} }
else if (defaultId == -1 || regionId < defaultId) else if (defaultId == -1 || regionId < defaultId)
{ {

View File

@ -26,28 +26,27 @@ License
#include "dynamicRefineFvMesh.H" #include "dynamicRefineFvMesh.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "fvc.H"
#include "volFields.H" #include "volFields.H"
#include "polyTopoChange.H" #include "polyTopoChange.H"
#include "surfaceFields.H" #include "surfaceFields.H"
#include "fvCFD.H"
#include "syncTools.H" #include "syncTools.H"
#include "pointFields.H" #include "pointFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(dynamicRefineFvMesh, 0);
addToRunTimeSelectionTable(dynamicFvMesh, dynamicRefineFvMesh, IOobject);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // } // End namespace Foam
defineTypeNameAndDebug(dynamicRefineFvMesh, 0);
addToRunTimeSelectionTable(dynamicFvMesh, dynamicRefineFvMesh, IOobject);
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * // // * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
label dynamicRefineFvMesh::count // the PackedBoolList::count method would probably be faster
// since we are only checking for 'true' anyhow
Foam::label Foam::dynamicRefineFvMesh::count
( (
const PackedBoolList& l, const PackedBoolList& l,
const unsigned int val const unsigned int val
@ -65,7 +64,7 @@ label dynamicRefineFvMesh::count
} }
void dynamicRefineFvMesh::calculateProtectedCells void Foam::dynamicRefineFvMesh::calculateProtectedCells
( (
PackedBoolList& unrefineableCell PackedBoolList& unrefineableCell
) const ) const
@ -171,7 +170,7 @@ void dynamicRefineFvMesh::calculateProtectedCells
} }
void dynamicRefineFvMesh::readDict() void Foam::dynamicRefineFvMesh::readDict()
{ {
dictionary refineDict dictionary refineDict
( (
@ -196,7 +195,8 @@ void dynamicRefineFvMesh::readDict()
// Refines cells, maps fields and recalculates (an approximate) flux // Refines cells, maps fields and recalculates (an approximate) flux
autoPtr<mapPolyMesh> dynamicRefineFvMesh::refine Foam::autoPtr<Foam::mapPolyMesh>
Foam::dynamicRefineFvMesh::refine
( (
const labelList& cellsToRefine const labelList& cellsToRefine
) )
@ -408,7 +408,8 @@ autoPtr<mapPolyMesh> dynamicRefineFvMesh::refine
// Combines previously split cells, maps fields and recalculates // Combines previously split cells, maps fields and recalculates
// (an approximate) flux // (an approximate) flux
autoPtr<mapPolyMesh> dynamicRefineFvMesh::unrefine Foam::autoPtr<Foam::mapPolyMesh>
Foam::dynamicRefineFvMesh::unrefine
( (
const labelList& splitPoints const labelList& splitPoints
) )
@ -563,7 +564,8 @@ autoPtr<mapPolyMesh> dynamicRefineFvMesh::unrefine
// Get max of connected point // Get max of connected point
scalarField dynamicRefineFvMesh::maxPointField(const scalarField& pFld) const Foam::scalarField
Foam::dynamicRefineFvMesh::maxPointField(const scalarField& pFld) const
{ {
scalarField vFld(nCells(), -GREAT); scalarField vFld(nCells(), -GREAT);
@ -581,7 +583,8 @@ scalarField dynamicRefineFvMesh::maxPointField(const scalarField& pFld) const
// Get min of connected cell // Get min of connected cell
scalarField dynamicRefineFvMesh::minCellField(const volScalarField& vFld) const Foam::scalarField
Foam::dynamicRefineFvMesh::minCellField(const volScalarField& vFld) const
{ {
scalarField pFld(nPoints(), GREAT); scalarField pFld(nPoints(), GREAT);
@ -599,7 +602,8 @@ scalarField dynamicRefineFvMesh::minCellField(const volScalarField& vFld) const
// Simple (non-parallel) interpolation by averaging. // Simple (non-parallel) interpolation by averaging.
scalarField dynamicRefineFvMesh::cellToPoint(const scalarField& vFld) const Foam::scalarField
Foam::dynamicRefineFvMesh::cellToPoint(const scalarField& vFld) const
{ {
scalarField pFld(nPoints()); scalarField pFld(nPoints());
@ -619,7 +623,8 @@ scalarField dynamicRefineFvMesh::cellToPoint(const scalarField& vFld) const
// Calculate error. Is < 0 or distance from inbetween levels // Calculate error. Is < 0 or distance from inbetween levels
scalarField dynamicRefineFvMesh::error Foam::scalarField
Foam::dynamicRefineFvMesh::error
( (
const scalarField& fld, const scalarField& fld,
const scalar minLevel, const scalar minLevel,
@ -641,7 +646,7 @@ scalarField dynamicRefineFvMesh::error
} }
void dynamicRefineFvMesh::selectRefineCandidates void Foam::dynamicRefineFvMesh::selectRefineCandidates
( (
const scalar lowerRefineLevel, const scalar lowerRefineLevel,
const scalar upperRefineLevel, const scalar upperRefineLevel,
@ -675,7 +680,7 @@ void dynamicRefineFvMesh::selectRefineCandidates
} }
labelList dynamicRefineFvMesh::selectRefineCells Foam::labelList Foam::dynamicRefineFvMesh::selectRefineCells
( (
const label maxCells, const label maxCells,
const label maxRefinement, const label maxRefinement,
@ -762,7 +767,7 @@ labelList dynamicRefineFvMesh::selectRefineCells
} }
labelList dynamicRefineFvMesh::selectUnrefinePoints Foam::labelList Foam::dynamicRefineFvMesh::selectUnrefinePoints
( (
const scalar unrefineLevel, const scalar unrefineLevel,
const PackedBoolList& markedCell, const PackedBoolList& markedCell,
@ -822,7 +827,10 @@ labelList dynamicRefineFvMesh::selectUnrefinePoints
} }
void dynamicRefineFvMesh::extendMarkedCells(PackedBoolList& markedCell) const void Foam::dynamicRefineFvMesh::extendMarkedCells
(
PackedBoolList& markedCell
) const
{ {
// Mark faces using any marked cell // Mark faces using any marked cell
boolList markedFace(nFaces(), false); boolList markedFace(nFaces(), false);
@ -863,7 +871,7 @@ void dynamicRefineFvMesh::extendMarkedCells(PackedBoolList& markedCell) const
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
dynamicRefineFvMesh::dynamicRefineFvMesh(const IOobject& io) Foam::dynamicRefineFvMesh::dynamicRefineFvMesh(const IOobject& io)
: :
dynamicFvMesh(io), dynamicFvMesh(io),
meshCutter_(*this), meshCutter_(*this),
@ -996,13 +1004,13 @@ dynamicRefineFvMesh::dynamicRefineFvMesh(const IOobject& io)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
dynamicRefineFvMesh::~dynamicRefineFvMesh() Foam::dynamicRefineFvMesh::~dynamicRefineFvMesh()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool dynamicRefineFvMesh::update() bool Foam::dynamicRefineFvMesh::update()
{ {
// Re-read dictionary. Choosen since usually -small so trivial amount // Re-read dictionary. Choosen since usually -small so trivial amount
// of time compared to actual refinement. Also very useful to be able // of time compared to actual refinement. Also very useful to be able
@ -1204,7 +1212,7 @@ bool dynamicRefineFvMesh::update()
} }
bool dynamicRefineFvMesh::writeObject bool Foam::dynamicRefineFvMesh::writeObject
( (
IOstream::streamFormat fmt, IOstream::streamFormat fmt,
IOstream::versionNumber ver, IOstream::versionNumber ver,
@ -1215,8 +1223,10 @@ bool dynamicRefineFvMesh::writeObject
const_cast<hexRef8&>(meshCutter_).setInstance(time().timeName()); const_cast<hexRef8&>(meshCutter_).setInstance(time().timeName());
bool writeOk = bool writeOk =
(
dynamicFvMesh::writeObjects(fmt, ver, cmp) dynamicFvMesh::writeObjects(fmt, ver, cmp)
&& meshCutter_.write(); && meshCutter_.write()
);
if (dumpLevel_) if (dumpLevel_)
{ {
@ -1249,8 +1259,4 @@ bool dynamicRefineFvMesh::writeObject
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -1,4 +1,4 @@
/*---------------------------------------------------------------------------* \ /*---------------------------------------------------------------------------*\
========= | ========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | \\ / O peration |

View File

@ -34,8 +34,7 @@ License
#include "fvcSurfaceIntegrate.H" #include "fvcSurfaceIntegrate.H"
#include "slicedSurfaceFields.H" #include "slicedSurfaceFields.H"
#include "syncTools.H" #include "syncTools.H"
#include "fvm.H"
#include "fvCFD.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -34,8 +34,7 @@ License
#include "fvcSurfaceIntegrate.H" #include "fvcSurfaceIntegrate.H"
#include "slicedSurfaceFields.H" #include "slicedSurfaceFields.H"
#include "syncTools.H" #include "syncTools.H"
#include "fvm.H"
#include "fvCFD.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -142,7 +141,7 @@ void Foam::MULES::implicitSolve
{ {
const fvMesh& mesh = psi.mesh(); const fvMesh& mesh = psi.mesh();
const dictionary& MULEScontrols = const dictionary& MULEScontrols =
mesh.solverDict(psi.name()).subDict("MULESImplicit"); mesh.solverDict(psi.name()).subDict("MULESImplicit");
label maxIter label maxIter

View File

@ -44,7 +44,6 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::commonRailInjector::commonRailInjector Foam::commonRailInjector::commonRailInjector
( (
const Foam::Time& t, const Foam::Time& t,

View File

@ -45,7 +45,6 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::definedInjector::definedInjector Foam::definedInjector::definedInjector
( (
const Time& t, const Time& t,

View File

@ -64,7 +64,7 @@ public:
// Constructors // Constructors
//- Constructor from Istream //- Constructor from Istream
injector(const Time& t, Istream& is); injector(const Time&, Istream&);
//- Return clone //- Return clone
inline autoPtr<injector> clone() const; inline autoPtr<injector> clone() const;

View File

@ -24,32 +24,25 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
//- Return clone inline Foam::autoPtr<Foam::injector>
inline autoPtr<injector> injector::clone() const Foam::injector::clone() const
{ {
return autoPtr<injector>(new injector(*this)); return autoPtr<injector>(new injector(*this));
} }
inline autoPtr<injectorType>& injector::properties() inline Foam::autoPtr<Foam::injectorType>&
Foam::injector::properties()
{ {
return properties_; return properties_;
} }
inline const autoPtr<injectorType>& injector::properties() const inline const Foam::autoPtr<Foam::injectorType>&
Foam::injector::properties() const
{ {
return properties_; return properties_;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -37,7 +37,6 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::injectorType::injectorType Foam::injectorType::injectorType
( (
const Foam::Time&, const Foam::Time&,

View File

@ -44,7 +44,6 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::multiHoleInjector::multiHoleInjector Foam::multiHoleInjector::multiHoleInjector
( (
const Foam::Time& t, const Foam::Time& t,

View File

@ -46,7 +46,6 @@ namespace Foam
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components
Foam::unitInjector::unitInjector Foam::unitInjector::unitInjector
( (
const Foam::Time& t, const Foam::Time& t,

View File

@ -23,7 +23,7 @@ else if (isA<wedgePolyPatch>(pbMesh[patch(face())]))
scalar Un = U() & nf; scalar Un = U() & nf;
if (Un > 0) if (Un > 0)
{ {
scalar Un2 = U() & n(); scalar Un2 = U() & n();
U() -= 2.0*Un2*n(); U() -= 2.0*Un2*n();
} }
} }

View File

@ -45,7 +45,10 @@ License
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTemplateTypeNameAndDebug(IOPtrList<injector>, 0); namespace Foam
{
defineTemplateTypeNameAndDebug(IOPtrList<injector>, 0);
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //

View File

@ -30,26 +30,24 @@ License
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
#include "RosinRammler.H" #include "RosinRammler.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(LISA, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
atomizationModel,
LISA,
dictionary
);
}
defineTypeNameAndDebug(LISA, 0);
addToRunTimeSelectionTable
(
atomizationModel,
LISA,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::LISA::LISA
LISA::LISA
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -67,13 +65,13 @@ LISA::LISA
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
LISA::~LISA() Foam::LISA::~LISA()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void LISA::atomizeParcel void Foam::LISA::atomizeParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -381,8 +379,4 @@ void LISA::atomizeParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -27,21 +27,18 @@ License
#include "error.H" #include "error.H"
#include "atomizationModel.H" #include "atomizationModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(atomizationModel, 0);
defineRunTimeSelectionTable(atomizationModel, dictionary);
}
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(atomizationModel, 0);
defineRunTimeSelectionTable(atomizationModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::atomizationModel::atomizationModel
atomizationModel::atomizationModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -55,11 +52,8 @@ atomizationModel::atomizationModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
atomizationModel::~atomizationModel() Foam::atomizationModel::~atomizationModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -30,26 +30,25 @@ License
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
#include "RosinRammler.H" #include "RosinRammler.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(blobsSheetAtomization, 0); namespace Foam
{
defineTypeNameAndDebug(blobsSheetAtomization, 0);
addToRunTimeSelectionTable
(
atomizationModel,
blobsSheetAtomization,
dictionary
);
}
addToRunTimeSelectionTable
(
atomizationModel,
blobsSheetAtomization,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::blobsSheetAtomization::blobsSheetAtomization
blobsSheetAtomization::blobsSheetAtomization
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -65,13 +64,13 @@ blobsSheetAtomization::blobsSheetAtomization
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
blobsSheetAtomization::~blobsSheetAtomization() Foam::blobsSheetAtomization::~blobsSheetAtomization()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void blobsSheetAtomization::atomizeParcel void Foam::blobsSheetAtomization::atomizeParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -140,8 +139,4 @@ void blobsSheetAtomization::atomizeParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -30,26 +30,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "basicMultiComponentMixture.H" #include "basicMultiComponentMixture.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(noAtomization, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
atomizationModel,
noAtomization,
dictionary
);
}
defineTypeNameAndDebug(noAtomization, 0);
addToRunTimeSelectionTable
(
atomizationModel,
noAtomization,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::noAtomization::noAtomization
noAtomization::noAtomization
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -61,13 +59,13 @@ noAtomization::noAtomization
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
noAtomization::~noAtomization() Foam::noAtomization::~noAtomization()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void noAtomization::atomizeParcel void Foam::noAtomization::atomizeParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -79,8 +77,4 @@ void noAtomization::atomizeParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,26 +28,25 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // defineTypeNameAndDebug(ETAB, 0);
defineTypeNameAndDebug(ETAB, 0); addToRunTimeSelectionTable
(
breakupModel,
ETAB,
dictionary
);
}
addToRunTimeSelectionTable
(
breakupModel,
ETAB,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::ETAB::ETAB
ETAB::ETAB
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -70,13 +69,13 @@ ETAB::ETAB
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
ETAB::~ETAB() Foam::ETAB::~ETAB()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void ETAB::breakupParcel void Foam::ETAB::breakupParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -84,7 +83,6 @@ void ETAB::breakupParcel
const liquidMixture& fuels const liquidMixture& fuels
) const ) const
{ {
scalar T = p.T(); scalar T = p.T();
scalar pc = spray_.p()[p.cell()]; scalar pc = spray_.p()[p.cell()];
scalar r = 0.5*p.d(); scalar r = 0.5*p.d();
@ -191,8 +189,4 @@ void ETAB::breakupParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(SHF, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(SHF, 0); breakupModel,
SHF,
addToRunTimeSelectionTable dictionary
( );
breakupModel, }
SHF,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::SHF::SHF
SHF::SHF
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -92,13 +89,13 @@ SHF::SHF
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
SHF::~SHF() Foam::SHF::~SHF()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void SHF::breakupParcel void Foam::SHF::breakupParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -265,8 +262,4 @@ void SHF::breakupParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,26 +28,25 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(TAB, 0); namespace Foam
{
defineTypeNameAndDebug(TAB, 0);
addToRunTimeSelectionTable
(
breakupModel,
TAB,
dictionary
);
}
addToRunTimeSelectionTable
(
breakupModel,
TAB,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::TAB::TAB
TAB::TAB
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -75,13 +74,13 @@ TAB::TAB
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
TAB::~TAB() Foam::TAB::~TAB()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void TAB::breakupParcel void Foam::TAB::breakupParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -207,8 +206,4 @@ void TAB::breakupParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -27,21 +27,18 @@ License
#include "error.H" #include "error.H"
#include "breakupModel.H" #include "breakupModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(breakupModel, 0);
defineRunTimeSelectionTable(breakupModel, dictionary);
}
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(breakupModel, 0);
defineRunTimeSelectionTable(breakupModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::breakupModel::breakupModel
breakupModel::breakupModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -71,13 +68,13 @@ breakupModel::breakupModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * //
breakupModel::~breakupModel() Foam::breakupModel::~breakupModel()
{} {}
// * * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * //
void breakupModel::updateParcelProperties void Foam::breakupModel::updateParcelProperties
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -142,8 +139,4 @@ void breakupModel::updateParcelProperties
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -31,24 +31,23 @@ License
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam
{
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(noBreakup, 0); namespace Foam
{
defineTypeNameAndDebug(noBreakup, 0);
addToRunTimeSelectionTable addToRunTimeSelectionTable
( (
breakupModel, breakupModel,
noBreakup, noBreakup,
dictionary dictionary
); );
}
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::noBreakup::noBreakup
noBreakup::noBreakup
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -60,13 +59,13 @@ noBreakup::noBreakup
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
noBreakup::~noBreakup() Foam::noBreakup::~noBreakup()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void noBreakup::breakupParcel void Foam::noBreakup::breakupParcel
( (
parcel&, parcel&,
const scalar, const scalar,
@ -77,8 +76,5 @@ void noBreakup::breakupParcel
// Do nothing // Do nothing
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -30,26 +30,23 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "basicMultiComponentMixture.H" #include "basicMultiComponentMixture.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(reitzDiwakar, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(reitzDiwakar, 0); breakupModel,
reitzDiwakar,
addToRunTimeSelectionTable dictionary
( );
breakupModel, }
reitzDiwakar,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::reitzDiwakar::reitzDiwakar
reitzDiwakar::reitzDiwakar
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -66,13 +63,13 @@ reitzDiwakar::reitzDiwakar
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
reitzDiwakar::~reitzDiwakar() Foam::reitzDiwakar::~reitzDiwakar()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void reitzDiwakar::breakupParcel void Foam::reitzDiwakar::breakupParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -147,8 +144,4 @@ void reitzDiwakar::breakupParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(reitzKHRT, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(reitzKHRT, 0); breakupModel,
reitzKHRT,
addToRunTimeSelectionTable dictionary
( );
breakupModel, }
reitzKHRT,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::reitzKHRT::reitzKHRT
reitzKHRT::reitzKHRT
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -68,13 +65,13 @@ reitzKHRT::reitzKHRT
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
reitzKHRT::~reitzKHRT() Foam::reitzKHRT::~reitzKHRT()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void reitzKHRT::breakupParcel void Foam::reitzKHRT::breakupParcel
( (
parcel& p, parcel& p,
const scalar deltaT, const scalar deltaT,
@ -228,8 +225,4 @@ void reitzKHRT::breakupParcel
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(ORourkeCollisionModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(ORourkeCollisionModel, 0); collisionModel,
ORourkeCollisionModel,
addToRunTimeSelectionTable dictionary
( );
collisionModel, }
ORourkeCollisionModel,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::ORourkeCollisionModel::ORourkeCollisionModel
ORourkeCollisionModel::ORourkeCollisionModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm, spray& sm,
@ -64,13 +61,13 @@ ORourkeCollisionModel::ORourkeCollisionModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
ORourkeCollisionModel::~ORourkeCollisionModel() Foam::ORourkeCollisionModel::~ORourkeCollisionModel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void ORourkeCollisionModel::collideParcels(const scalar dt) const void Foam::ORourkeCollisionModel::collideParcels(const scalar dt) const
{ {
if (spray_.size() < 2) if (spray_.size() < 2)
{ {
@ -127,8 +124,4 @@ void ORourkeCollisionModel::collideParcels(const scalar dt) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -27,21 +27,18 @@ License
#include "error.H" #include "error.H"
#include "collisionModel.H" #include "collisionModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(collisionModel, 0);
defineRunTimeSelectionTable(collisionModel, dictionary);
}
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(collisionModel, 0);
defineRunTimeSelectionTable(collisionModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::collisionModel::collisionModel
collisionModel::collisionModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm, spray& sm,
@ -51,18 +48,14 @@ collisionModel::collisionModel
dict_(dict), dict_(dict),
spray_(sm), spray_(sm),
rndGen_(rndGen) rndGen_(rndGen)
//coeffsDict_(dict.subDict(typeName + "Coeffs")) // coeffsDict_(dict.subDict(typeName + "Coeffs"))
{} {}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
collisionModel::~collisionModel() Foam::collisionModel::~collisionModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,27 +29,24 @@ License
#include "noCollision.H" #include "noCollision.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(noCollision, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(noCollision, 0); collisionModel,
noCollision,
addToRunTimeSelectionTable dictionary
( );
collisionModel, }
noCollision,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::noCollision::noCollision
noCollision::noCollision
( (
const dictionary& dict, const dictionary& dict,
spray& sm, spray& sm,
@ -62,20 +59,16 @@ noCollision::noCollision
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
noCollision::~noCollision() Foam::noCollision::~noCollision()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void noCollision::collideParcels(const scalar) const void Foam::noCollision::collideParcels(const scalar) const
{ {
// Do nothing // Do nothing
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(trajectoryCollisionModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(trajectoryCollisionModel, 0); collisionModel,
trajectoryCollisionModel,
addToRunTimeSelectionTable dictionary
( );
collisionModel, }
trajectoryCollisionModel,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::trajectoryCollisionModel::trajectoryCollisionModel
trajectoryCollisionModel::trajectoryCollisionModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm, spray& sm,
@ -66,13 +63,13 @@ trajectoryCollisionModel::trajectoryCollisionModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
trajectoryCollisionModel::~trajectoryCollisionModel() Foam::trajectoryCollisionModel::~trajectoryCollisionModel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void trajectoryCollisionModel::collideParcels(const scalar dt) const void Foam::trajectoryCollisionModel::collideParcels(const scalar dt) const
{ {
if (spray_.size() < 2) if (spray_.size() < 2)
{ {
@ -121,8 +118,4 @@ void trajectoryCollisionModel::collideParcels(const scalar dt) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -26,19 +26,16 @@ License
#include "dispersionLESModel.H" #include "dispersionLESModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(dispersionLESModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // }
defineTypeNameAndDebug(dispersionLESModel, 0);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::dispersionLESModel::dispersionLESModel
dispersionLESModel::dispersionLESModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -57,12 +54,8 @@ dispersionLESModel::dispersionLESModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
dispersionLESModel::~dispersionLESModel() Foam::dispersionLESModel::~dispersionLESModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,22 +28,18 @@ License
#include "dispersionModel.H" #include "dispersionModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(dispersionModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // defineRunTimeSelectionTable(dispersionModel, dictionary);
}
defineTypeNameAndDebug(dispersionModel, 0);
defineRunTimeSelectionTable(dispersionModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::dispersionModel::dispersionModel
dispersionModel::dispersionModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -56,12 +52,8 @@ dispersionModel::dispersionModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
dispersionModel::~dispersionModel() Foam::dispersionModel::~dispersionModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -26,19 +26,16 @@ License
#include "dispersionRASModel.H" #include "dispersionRASModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(dispersionRASModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // }
defineTypeNameAndDebug(dispersionRASModel, 0);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::dispersionRASModel::dispersionRASModel
dispersionRASModel::dispersionRASModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -57,12 +54,8 @@ dispersionRASModel::dispersionRASModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
dispersionRASModel::~dispersionRASModel() Foam::dispersionRASModel::~dispersionRASModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,27 +29,24 @@ License
#include "gradientDispersionRAS.H" #include "gradientDispersionRAS.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(gradientDispersionRAS, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(gradientDispersionRAS, 0); dispersionModel,
gradientDispersionRAS,
addToRunTimeSelectionTable dictionary
( );
dispersionModel, }
gradientDispersionRAS,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::gradientDispersionRAS::gradientDispersionRAS
gradientDispersionRAS::gradientDispersionRAS
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -61,13 +58,13 @@ gradientDispersionRAS::gradientDispersionRAS
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
gradientDispersionRAS::~gradientDispersionRAS() Foam::gradientDispersionRAS::~gradientDispersionRAS()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void gradientDispersionRAS::disperseParcels() const void Foam::gradientDispersionRAS::disperseParcels() const
{ {
const scalar cps = 0.16432; const scalar cps = 0.16432;
@ -90,7 +87,7 @@ void gradientDispersionRAS::disperseParcels() const
scalar Tturb = min scalar Tturb = min
( (
k[celli]/epsilon[celli], k[celli]/epsilon[celli],
cps*pow(k[celli], 1.5)/epsilon[celli]/(UrelMag + SMALL) cps*pow(k[celli], 1.5)/epsilon[celli]/(UrelMag + SMALL)
); );
// parcel is perturbed by the turbulence // parcel is perturbed by the turbulence
@ -115,9 +112,9 @@ void gradientDispersionRAS::disperseParcels() const
x2 = 2.0*spray_.rndGen().scalar01() - 1.0; x2 = 2.0*spray_.rndGen().scalar01() - 1.0;
rsq = x1*x1 + x2*x2; rsq = x1*x1 + x2*x2;
} }
scalar fac = sqrt(-2.0*log(rsq)/rsq); scalar fac = sqrt(-2.0*log(rsq)/rsq);
// in 2D calculations the -grad(k) is always // in 2D calculations the -grad(k) is always
// away from the axis of symmetry // away from the axis of symmetry
// This creates a 'hole' in the spray and to // This creates a 'hole' in the spray and to
@ -130,7 +127,7 @@ void gradientDispersionRAS::disperseParcels() const
{ {
fac *= mag(x1); fac *= mag(x1);
} }
elmnt().Uturb() = sigma*fac*dir; elmnt().Uturb() = sigma*fac*dir;
} }
} }
@ -143,8 +140,4 @@ void gradientDispersionRAS::disperseParcels() const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,27 +29,24 @@ License
#include "noDispersion.H" #include "noDispersion.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(noDispersion, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(noDispersion, 0); dispersionModel,
noDispersion,
addToRunTimeSelectionTable dictionary
( );
dispersionModel, }
noDispersion,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::noDispersion::noDispersion(const dictionary& dict, spray& sm)
noDispersion::noDispersion(const dictionary& dict, spray& sm)
: :
dispersionModel(dict, sm) dispersionModel(dict, sm)
{} {}
@ -57,20 +54,16 @@ noDispersion::noDispersion(const dictionary& dict, spray& sm)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
noDispersion::~noDispersion() Foam::noDispersion::~noDispersion()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void noDispersion::disperseParcels() const void Foam::noDispersion::disperseParcels() const
{ {
// Do nothing // Do nothing
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,27 +29,24 @@ License
#include "stochasticDispersionRAS.H" #include "stochasticDispersionRAS.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(stochasticDispersionRAS, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(stochasticDispersionRAS, 0); dispersionModel,
stochasticDispersionRAS,
addToRunTimeSelectionTable dictionary
( );
dispersionModel, }
stochasticDispersionRAS,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::stochasticDispersionRAS::stochasticDispersionRAS
stochasticDispersionRAS::stochasticDispersionRAS
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -61,13 +58,13 @@ stochasticDispersionRAS::stochasticDispersionRAS
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
stochasticDispersionRAS::~stochasticDispersionRAS() Foam::stochasticDispersionRAS::~stochasticDispersionRAS()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
void stochasticDispersionRAS::disperseParcels() const void Foam::stochasticDispersionRAS::disperseParcels() const
{ {
const scalar cps = 0.16432; const scalar cps = 0.16432;
@ -91,7 +88,7 @@ void stochasticDispersionRAS::disperseParcels() const
scalar Tturb = min scalar Tturb = min
( (
k[celli]/epsilon[celli], k[celli]/epsilon[celli],
cps*pow(k[celli], 1.5)/epsilon[celli]/(UrelMag + SMALL) cps*pow(k[celli], 1.5)/epsilon[celli]/(UrelMag + SMALL)
); );
@ -103,25 +100,25 @@ void stochasticDispersionRAS::disperseParcels() const
if (elmnt().tTurb() > Tturb) if (elmnt().tTurb() > Tturb)
{ {
elmnt().tTurb() = 0.0; elmnt().tTurb() = 0.0;
scalar sigma = sqrt(2.0*k[celli]/3.0); scalar sigma = sqrt(2.0*k[celli]/3.0);
vector dir = 2.0*spray_.rndGen().vector01() - one; vector dir = 2.0*spray_.rndGen().vector01() - one;
dir /= mag(dir) + SMALL; dir /= mag(dir) + SMALL;
// numerical recipes... Ch. 7. Random Numbers... // numerical recipes... Ch. 7. Random Numbers...
scalar x1,x2; scalar x1,x2;
scalar rsq = 10.0; scalar rsq = 10.0;
while ((rsq > 1.0) || (rsq == 0.0)) while (rsq > 1.0 || rsq == 0.0)
{ {
x1 = 2.0*spray_.rndGen().scalar01() - 1.0; x1 = 2.0*spray_.rndGen().scalar01() - 1.0;
x2 = 2.0*spray_.rndGen().scalar01() - 1.0; x2 = 2.0*spray_.rndGen().scalar01() - 1.0;
rsq = x1*x1 + x2*x2; rsq = x1*x1 + x2*x2;
} }
scalar fac = sqrt(-2.0*log(rsq)/rsq); scalar fac = sqrt(-2.0*log(rsq)/rsq);
fac *= mag(x1); fac *= mag(x1);
elmnt().Uturb() = sigma*fac*dir; elmnt().Uturb() = sigma*fac*dir;
} }
@ -135,8 +132,4 @@ void stochasticDispersionRAS::disperseParcels() const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,21 +29,18 @@ License
#include "dragModel.H" #include "dragModel.H"
#include "parcel.H" #include "parcel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(dragModel, 0);
defineRunTimeSelectionTable(dragModel, dictionary);
}
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(dragModel, 0);
defineRunTimeSelectionTable(dragModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::dragModel::dragModel(const dictionary& dict)
dragModel::dragModel(const dictionary& dict)
: :
dict_(dict) dict_(dict)
{} {}
@ -51,12 +48,8 @@ dragModel::dragModel(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
dragModel::~dragModel() Foam::dragModel::~dragModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -34,7 +34,8 @@ Description
#define dragModel_H #define dragModel_H
#include "IOdictionary.H" #include "IOdictionary.H"
#include "fvCFD.H" #include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -29,26 +29,24 @@ License
#include "noDragModel.H" #include "noDragModel.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(noDragModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
dragModel,
noDragModel,
dictionary
);
}
defineTypeNameAndDebug(noDragModel, 0);
addToRunTimeSelectionTable
(
dragModel,
noDragModel,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::noDragModel::noDragModel(const dictionary& dict)
noDragModel::noDragModel(const dictionary& dict)
: :
dragModel(dict) dragModel(dict)
{} {}
@ -56,13 +54,13 @@ noDragModel::noDragModel(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
noDragModel::~noDragModel() Foam::noDragModel::~noDragModel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar noDragModel::Cd Foam::scalar Foam::noDragModel::Cd
( (
const scalar, const scalar,
const scalar const scalar
@ -72,7 +70,7 @@ scalar noDragModel::Cd
} }
scalar noDragModel::relaxationTime Foam::scalar Foam::noDragModel::relaxationTime
( (
const vector&, const vector&,
const scalar, const scalar,
@ -86,8 +84,4 @@ scalar noDragModel::relaxationTime
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,26 +29,24 @@ License
#include "standardDragModel.H" #include "standardDragModel.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(standardDragModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
dragModel,
standardDragModel,
dictionary
);
}
defineTypeNameAndDebug(standardDragModel, 0);
addToRunTimeSelectionTable
(
dragModel,
standardDragModel,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::standardDragModel::standardDragModel(const dictionary& dict)
standardDragModel::standardDragModel(const dictionary& dict)
: :
dragModel(dict), dragModel(dict),
dragDict_(dict.subDict(typeName + "Coeffs")), dragDict_(dict.subDict(typeName + "Coeffs")),
@ -62,13 +60,13 @@ standardDragModel::standardDragModel(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
standardDragModel::~standardDragModel() Foam::standardDragModel::~standardDragModel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar standardDragModel::Cd Foam::scalar Foam::standardDragModel::Cd
( (
const scalar Re, const scalar Re,
const scalar dev const scalar dev
@ -88,7 +86,7 @@ scalar standardDragModel::Cd
} }
scalar standardDragModel::relaxationTime Foam::scalar Foam::standardDragModel::relaxationTime
( (
const vector& URel, const vector& URel,
const scalar diameter, const scalar diameter,
@ -119,8 +117,4 @@ scalar standardDragModel::relaxationTime
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -30,27 +30,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(RutlandFlashBoil, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(RutlandFlashBoil, 0); evaporationModel,
RutlandFlashBoil,
addToRunTimeSelectionTable dictionary
( );
evaporationModel, }
RutlandFlashBoil,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary Foam::RutlandFlashBoil::RutlandFlashBoil( const dictionary& dict)
RutlandFlashBoil::RutlandFlashBoil( const dictionary& dict)
: :
evaporationModel(dict), evaporationModel(dict),
evapDict_(dict.subDict(typeName + "Coeffs")), evapDict_(dict.subDict(typeName + "Coeffs")),
@ -80,20 +77,20 @@ RutlandFlashBoil::RutlandFlashBoil( const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
RutlandFlashBoil::~RutlandFlashBoil() Foam::RutlandFlashBoil::~RutlandFlashBoil()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool RutlandFlashBoil::evaporation() const bool Foam::RutlandFlashBoil::evaporation() const
{ {
return true; return true;
} }
// Correlation for the Sherwood Number // Correlation for the Sherwood Number
scalar RutlandFlashBoil::Sh Foam::scalar Foam::RutlandFlashBoil::Sh
( (
const scalar ReynoldsNumber, const scalar ReynoldsNumber,
const scalar SchmidtNumber const scalar SchmidtNumber
@ -107,7 +104,7 @@ scalar RutlandFlashBoil::Sh
} }
scalar RutlandFlashBoil::relaxationTime Foam::scalar Foam::RutlandFlashBoil::relaxationTime
( (
const scalar diameter, const scalar diameter,
const scalar liquidDensity, const scalar liquidDensity,
@ -181,7 +178,7 @@ scalar RutlandFlashBoil::relaxationTime
} }
scalar RutlandFlashBoil::boilingTime Foam::scalar Foam::RutlandFlashBoil::boilingTime
( (
const scalar liquidDensity, const scalar liquidDensity,
const scalar cpFuel, const scalar cpFuel,
@ -351,14 +348,4 @@ scalar RutlandFlashBoil::boilingTime
} }
inline label RutlandFlashBoil::nEvapIter() const
{
return nEvapIter_;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -135,7 +135,11 @@ public:
const scalar kLiquid const scalar kLiquid
) const; ) const;
inline label nEvapIter() const; inline label nEvapIter() const
{
return nEvapIter_;
}
}; };

View File

@ -24,36 +24,29 @@ License
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
#include "error.H"
#include "evaporationModel.H" #include "evaporationModel.H"
#include "fvCFD.H" #include "runTimeSelectionTables.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(evaporationModel, 0);
defineTypeNameAndDebug(evaporationModel, 0); defineRunTimeSelectionTable(evaporationModel, dictionary);
}
defineRunTimeSelectionTable(evaporationModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary Foam::evaporationModel::evaporationModel(const dictionary& dict)
evaporationModel::evaporationModel(const dictionary& dict)
: :
dict_(dict) dict_(dict)
{} {}
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
evaporationModel::~evaporationModel() Foam::evaporationModel::~evaporationModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -60,9 +60,9 @@ public:
//- Runtime type information //- Runtime type information
TypeName("evaporationModel"); TypeName("evaporationModel");
//- Evaluate the gaseous properties Tand Y (implicit/explicit) //- Evaluate the gaseous properties T and Y (implicit/explicit)
//word gasPropertyEvaluation_; // word gasPropertyEvaluation_;
//label nEvapIter_; // label nEvapIter_;
// Declare runtime constructor selection table // Declare runtime constructor selection table
@ -82,7 +82,7 @@ public:
// Constructors // Constructors
//- Construct from components //- Construct from components
evaporationModel(const dictionary& dict); evaporationModel(const dictionary&);
//- Destructor //- Destructor
@ -91,7 +91,7 @@ public:
// Selector // Selector
static autoPtr<evaporationModel> New(const dictionary& dict); static autoPtr<evaporationModel> New(const dictionary&);
// Member Functions // Member Functions

View File

@ -29,29 +29,23 @@ License
#include "evaporationModel.H" #include "evaporationModel.H"
#include "noEvaporation.H" #include "noEvaporation.H"
#include "standardEvaporationModel.H" #include "standardEvaporationModel.H"
#include "fvCFD.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam Foam::autoPtr<Foam::evaporationModel>
Foam::evaporationModel::New(const dictionary& dict)
{ {
word modelType(dict.lookup("evaporationModel"));
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Info<< "Selecting evaporationModel " << modelType << endl;
autoPtr<evaporationModel> evaporationModel::New(const dictionary& dict)
{
word evaporationModelType(dict.lookup("evaporationModel"));
Info<< "Selecting evaporationModel "
<< evaporationModelType << endl;
dictionaryConstructorTable::iterator cstrIter = dictionaryConstructorTable::iterator cstrIter =
dictionaryConstructorTablePtr_->find(evaporationModelType); dictionaryConstructorTablePtr_->find(modelType);
if (cstrIter == dictionaryConstructorTablePtr_->end()) if (cstrIter == dictionaryConstructorTablePtr_->end())
{ {
FatalErrorIn("evaporationModel::New(const dictionary&)") FatalErrorIn("evaporationModel::New(const dictionary&)")
<< "Unknown evaporationModelType type " << evaporationModelType << "Unknown evaporationModelType type " << modelType
<< ", constructor not in hash table" << nl << nl << ", constructor not in hash table" << nl << nl
<< " Valid evaporationModel types are: " << nl << " Valid evaporationModel types are: " << nl
<< dictionaryConstructorTablePtr_->sortedToc() << dictionaryConstructorTablePtr_->sortedToc()
@ -62,8 +56,4 @@ autoPtr<evaporationModel> evaporationModel::New(const dictionary& dict)
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,26 +29,24 @@ License
#include "noEvaporation.H" #include "noEvaporation.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(noEvaporation, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
evaporationModel,
noEvaporation,
dictionary
);
}
defineTypeNameAndDebug(noEvaporation, 0);
addToRunTimeSelectionTable
(
evaporationModel,
noEvaporation,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary Foam::noEvaporation::noEvaporation( const dictionary& dict)
noEvaporation::noEvaporation( const dictionary& dict)
: :
evaporationModel(dict) evaporationModel(dict)
{} {}
@ -56,19 +54,19 @@ noEvaporation::noEvaporation( const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
noEvaporation::~noEvaporation() Foam::noEvaporation::~noEvaporation()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool noEvaporation::evaporation() const bool Foam::noEvaporation::evaporation() const
{ {
return false; return false;
} }
scalar noEvaporation::Sh Foam::scalar Foam::noEvaporation::Sh
( (
const scalar, const scalar,
const scalar const scalar
@ -78,7 +76,7 @@ scalar noEvaporation::Sh
} }
scalar noEvaporation::relaxationTime Foam::scalar Foam::noEvaporation::relaxationTime
( (
const scalar, const scalar,
const scalar, const scalar,
@ -97,7 +95,7 @@ scalar noEvaporation::relaxationTime
} }
scalar noEvaporation::boilingTime Foam::scalar Foam::noEvaporation::boilingTime
( (
const scalar, const scalar,
const scalar, const scalar,
@ -121,14 +119,4 @@ scalar noEvaporation::boilingTime
} }
inline label noEvaporation::nEvapIter() const
{
return 0;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -111,7 +111,11 @@ public:
const scalar kLiq const scalar kLiq
) const; ) const;
inline label nEvapIter() const; inline label nEvapIter() const
{
return 0;
}
}; };

View File

@ -29,27 +29,24 @@ License
#include "saturateEvaporationModel.H" #include "saturateEvaporationModel.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(saturateEvaporationModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(saturateEvaporationModel, 0); evaporationModel,
saturateEvaporationModel,
addToRunTimeSelectionTable dictionary
( );
evaporationModel, }
saturateEvaporationModel,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary Foam::saturateEvaporationModel::saturateEvaporationModel
saturateEvaporationModel::saturateEvaporationModel
( (
const dictionary& dict const dictionary& dict
) )
@ -60,20 +57,20 @@ saturateEvaporationModel::saturateEvaporationModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
saturateEvaporationModel::~saturateEvaporationModel() Foam::saturateEvaporationModel::~saturateEvaporationModel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool saturateEvaporationModel::evaporation() const bool Foam::saturateEvaporationModel::evaporation() const
{ {
return true; return true;
} }
// Correlation for the Sherwood Number // Correlation for the Sherwood Number
scalar saturateEvaporationModel::Sh Foam::scalar Foam::saturateEvaporationModel::Sh
( (
const scalar ReynoldsNumber, const scalar ReynoldsNumber,
const scalar SchmidtNumber const scalar SchmidtNumber
@ -83,7 +80,7 @@ scalar saturateEvaporationModel::Sh
} }
scalar saturateEvaporationModel::relaxationTime Foam::scalar Foam::saturateEvaporationModel::relaxationTime
( (
const scalar diameter, const scalar diameter,
const scalar liquidDensity, const scalar liquidDensity,
@ -102,7 +99,7 @@ scalar saturateEvaporationModel::relaxationTime
} }
scalar saturateEvaporationModel::boilingTime Foam::scalar Foam::saturateEvaporationModel::boilingTime
( (
const scalar liquidDensity, const scalar liquidDensity,
const scalar cpFuel, const scalar cpFuel,
@ -142,14 +139,4 @@ scalar saturateEvaporationModel::boilingTime
} }
inline label saturateEvaporationModel::nEvapIter() const
{
return 1;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -123,7 +123,12 @@ public:
const scalar const scalar
) const; ) const;
inline label nEvapIter() const; inline label nEvapIter() const
{
return 1;
}
}; };

View File

@ -29,27 +29,24 @@ License
#include "standardEvaporationModel.H" #include "standardEvaporationModel.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(standardEvaporationModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(standardEvaporationModel, 0); evaporationModel,
standardEvaporationModel,
addToRunTimeSelectionTable dictionary
( );
evaporationModel, }
standardEvaporationModel,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary Foam::standardEvaporationModel::standardEvaporationModel
standardEvaporationModel::standardEvaporationModel
( (
const dictionary& dict const dictionary& dict
) )
@ -82,20 +79,20 @@ standardEvaporationModel::standardEvaporationModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
standardEvaporationModel::~standardEvaporationModel() Foam::standardEvaporationModel::~standardEvaporationModel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool standardEvaporationModel::evaporation() const bool Foam::standardEvaporationModel::evaporation() const
{ {
return true; return true;
} }
// Correlation for the Sherwood Number // Correlation for the Sherwood Number
scalar standardEvaporationModel::Sh Foam::scalar Foam::standardEvaporationModel::Sh
( (
const scalar ReynoldsNumber, const scalar ReynoldsNumber,
const scalar SchmidtNumber const scalar SchmidtNumber
@ -109,7 +106,7 @@ scalar standardEvaporationModel::Sh
} }
scalar standardEvaporationModel::relaxationTime Foam::scalar Foam::standardEvaporationModel::relaxationTime
( (
const scalar diameter, const scalar diameter,
const scalar liquidDensity, const scalar liquidDensity,
@ -169,7 +166,7 @@ scalar standardEvaporationModel::relaxationTime
} }
scalar standardEvaporationModel::boilingTime Foam::scalar Foam::standardEvaporationModel::boilingTime
( (
const scalar liquidDensity, const scalar liquidDensity,
const scalar cpFuel, const scalar cpFuel,
@ -207,14 +204,4 @@ scalar standardEvaporationModel::boilingTime
} }
inline label standardEvaporationModel::nEvapIter() const
{
return nEvapIter_;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -126,7 +126,11 @@ public:
const scalar const scalar
) const; ) const;
inline label nEvapIter() const; inline label nEvapIter() const
{
return nEvapIter_;
}
}; };

View File

@ -29,26 +29,24 @@ License
#include "RanzMarshall.H" #include "RanzMarshall.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(RanzMarshall, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
heatTransferModel,
RanzMarshall,
dictionary
);
}
defineTypeNameAndDebug(RanzMarshall, 0);
addToRunTimeSelectionTable
(
heatTransferModel,
RanzMarshall,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::RanzMarshall::RanzMarshall(const dictionary& dict)
RanzMarshall::RanzMarshall(const dictionary& dict)
: :
heatTransferModel(dict), heatTransferModel(dict),
heatDict_(dict.subDict(typeName + "Coeffs")), heatDict_(dict.subDict(typeName + "Coeffs")),
@ -60,19 +58,19 @@ RanzMarshall::RanzMarshall(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
RanzMarshall::~RanzMarshall() Foam::RanzMarshall::~RanzMarshall()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool RanzMarshall::heatTransfer() const bool Foam::RanzMarshall::heatTransfer() const
{ {
return true; return true;
} }
scalar RanzMarshall::Nu Foam::scalar Foam::RanzMarshall::Nu
( (
const scalar ReynoldsNumber, const scalar ReynoldsNumber,
const scalar PrandtlNumber const scalar PrandtlNumber
@ -86,7 +84,7 @@ scalar RanzMarshall::Nu
} }
scalar RanzMarshall::relaxationTime Foam::scalar Foam::RanzMarshall::relaxationTime
( (
const scalar liquidDensity, const scalar liquidDensity,
const scalar diameter, const scalar diameter,
@ -108,7 +106,7 @@ scalar RanzMarshall::relaxationTime
} }
scalar RanzMarshall::fCorrection(const scalar z) const Foam::scalar Foam::RanzMarshall::fCorrection(const scalar z) const
{ {
scalar correct; scalar correct;
if (z > 0.01) if (z > 0.01)
@ -132,8 +130,4 @@ scalar RanzMarshall::fCorrection(const scalar z) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -26,32 +26,24 @@ License
#include "heatTransferModel.H" #include "heatTransferModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(heatTransferModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // defineRunTimeSelectionTable(heatTransferModel, dictionary);
}
defineTypeNameAndDebug(heatTransferModel, 0);
defineRunTimeSelectionTable(heatTransferModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from dictionary Foam::heatTransferModel::heatTransferModel(const dictionary& dict)
heatTransferModel::heatTransferModel(const dictionary& dict)
: :
dict_(dict) dict_(dict)
{} {}
heatTransferModel::~heatTransferModel() Foam::heatTransferModel::~heatTransferModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -27,27 +27,24 @@ License
#include "noHeatTransfer.H" #include "noHeatTransfer.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(noHeatTransfer, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(noHeatTransfer, 0); heatTransferModel,
noHeatTransfer,
addToRunTimeSelectionTable dictionary
( );
heatTransferModel, }
noHeatTransfer,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::noHeatTransfer::noHeatTransfer(const dictionary& dict)
noHeatTransfer::noHeatTransfer(const dictionary& dict)
: :
heatTransferModel(dict) heatTransferModel(dict)
{} {}
@ -55,25 +52,25 @@ noHeatTransfer::noHeatTransfer(const dictionary& dict)
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
noHeatTransfer::~noHeatTransfer() Foam::noHeatTransfer::~noHeatTransfer()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool noHeatTransfer::heatTransfer() const bool Foam::noHeatTransfer::heatTransfer() const
{ {
return false; return false;
} }
scalar noHeatTransfer::Nu(const scalar, const scalar) const Foam::scalar Foam::noHeatTransfer::Nu(const scalar, const scalar) const
{ {
return 0.0; return 0.0;
} }
scalar noHeatTransfer::relaxationTime Foam::scalar Foam::noHeatTransfer::relaxationTime
( (
const scalar, const scalar,
const scalar, const scalar,
@ -87,14 +84,10 @@ scalar noHeatTransfer::relaxationTime
} }
scalar noHeatTransfer::fCorrection(const scalar) const Foam::scalar Foam::noHeatTransfer::fCorrection(const scalar) const
{ {
return 1.0; return 1.0;
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(ChomiakInjector, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(ChomiakInjector, 0); injectorModel,
ChomiakInjector,
addToRunTimeSelectionTable dictionary
( );
injectorModel, }
ChomiakInjector,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::ChomiakInjector::ChomiakInjector
ChomiakInjector::ChomiakInjector
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -88,13 +85,13 @@ ChomiakInjector::ChomiakInjector
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
ChomiakInjector::~ChomiakInjector() Foam::ChomiakInjector::~ChomiakInjector()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar ChomiakInjector::d0 Foam::scalar Foam::ChomiakInjector::d0
( (
const label, const label,
const scalar const scalar
@ -104,7 +101,7 @@ scalar ChomiakInjector::d0
} }
vector ChomiakInjector::direction Foam::vector Foam::ChomiakInjector::direction
( (
const label n, const label n,
const label hole, const label hole,
@ -162,7 +159,7 @@ vector ChomiakInjector::direction
} }
scalar ChomiakInjector::velocity Foam::scalar Foam::ChomiakInjector::velocity
( (
const label i, const label i,
const scalar time const scalar time
@ -184,7 +181,7 @@ scalar ChomiakInjector::velocity
} }
scalar ChomiakInjector::averageVelocity(const label i) const Foam::scalar Foam::ChomiakInjector::averageVelocity(const label i) const
{ {
const injectorType& it = sm_.injectors()[i].properties(); const injectorType& it = sm_.injectors()[i].properties();
scalar dt = it.teoi() - it.tsoi(); scalar dt = it.teoi() - it.tsoi();
@ -192,8 +189,4 @@ scalar ChomiakInjector::averageVelocity(const label i) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "unitConversion.H" #include "unitConversion.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(blobsSwirlInjector, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(blobsSwirlInjector, 0); injectorModel,
blobsSwirlInjector,
addToRunTimeSelectionTable dictionary
( );
injectorModel, }
blobsSwirlInjector,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::blobsSwirlInjector::blobsSwirlInjector
blobsSwirlInjector::blobsSwirlInjector
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -94,13 +91,13 @@ blobsSwirlInjector::blobsSwirlInjector
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
blobsSwirlInjector::~blobsSwirlInjector() Foam::blobsSwirlInjector::~blobsSwirlInjector()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar blobsSwirlInjector::d0 Foam::scalar Foam::blobsSwirlInjector::d0
( (
const label n, const label n,
const scalar t const scalar t
@ -132,7 +129,7 @@ scalar blobsSwirlInjector::d0
} }
vector blobsSwirlInjector::direction Foam::vector Foam::blobsSwirlInjector::direction
( (
const label n, const label n,
const label hole, const label hole,
@ -182,7 +179,7 @@ vector blobsSwirlInjector::direction
} }
scalar blobsSwirlInjector::velocity Foam::scalar Foam::blobsSwirlInjector::velocity
( (
const label i, const label i,
const scalar time const scalar time
@ -192,7 +189,7 @@ scalar blobsSwirlInjector::velocity
} }
scalar blobsSwirlInjector::averageVelocity(const label i) const Foam::scalar Foam::blobsSwirlInjector::averageVelocity(const label i) const
{ {
const injectorType& it = sm_.injectors()[i].properties(); const injectorType& it = sm_.injectors()[i].properties();
@ -210,13 +207,13 @@ scalar blobsSwirlInjector::averageVelocity(const label i) const
} }
scalar blobsSwirlInjector::kv(const label inj) const Foam::scalar Foam::blobsSwirlInjector::kv(const label inj) const
{ {
return cD_[inj]/cos(angle_) * sqrt((1.0 - x_)/(1.0 + x_)); return cD_[inj]/cos(angle_) * sqrt((1.0 - x_)/(1.0 + x_));
} }
void blobsSwirlInjector::calculateHX void Foam::blobsSwirlInjector::calculateHX
( (
const label inj, const label inj,
const scalar massFlow, const scalar massFlow,
@ -277,7 +274,7 @@ void blobsSwirlInjector::calculateHX
} }
scalar blobsSwirlInjector::deltaPressureInj Foam::scalar Foam::blobsSwirlInjector::deltaPressureInj
( (
const scalar time, const scalar time,
const label inj const label inj
@ -289,7 +286,7 @@ scalar blobsSwirlInjector::deltaPressureInj
} }
scalar blobsSwirlInjector::averagePressure(const label inj) const Foam::scalar Foam::blobsSwirlInjector::averagePressure(const label inj) const
{ {
const injectorType& it = sm_.injectors()[inj].properties(); const injectorType& it = sm_.injectors()[inj].properties();
@ -298,8 +295,4 @@ scalar blobsSwirlInjector::averagePressure(const label inj) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(constInjector, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(constInjector, 0); injectorModel,
constInjector,
addToRunTimeSelectionTable dictionary
( );
injectorModel, }
constInjector,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::constInjector::constInjector
constInjector::constInjector
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -93,13 +90,13 @@ constInjector::constInjector
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
constInjector::~constInjector() Foam::constInjector::~constInjector()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar constInjector::d0 Foam::scalar Foam::constInjector::d0
( (
const label n, const label n,
const scalar const scalar
@ -109,7 +106,7 @@ scalar constInjector::d0
} }
vector constInjector::direction Foam::vector Foam::constInjector::direction
( (
const label n, const label n,
const label hole, const label hole,
@ -125,12 +122,12 @@ vector constInjector::direction
= maximum sin(sprayAngle/2) = maximum sin(sprayAngle/2)
beta = angle in the normal plane beta = angle in the normal plane
o / (beta) o / (beta)
|\ / |\ /
| \ /) | \ /)
| \ o-----------> (x-axis) | \ o-----------> (x-axis)
| \ | \
v (alpha) v (alpha)
*/ */
scalar angle = rndGen_.scalar01()*sprayAngle_[n]*constant::mathematical::pi/360.0; scalar angle = rndGen_.scalar01()*sprayAngle_[n]*constant::mathematical::pi/360.0;
@ -176,7 +173,7 @@ vector constInjector::direction
} }
scalar constInjector::velocity Foam::scalar Foam::constInjector::velocity
( (
const label i, const label i,
const scalar time const scalar time
@ -198,7 +195,7 @@ scalar constInjector::velocity
} }
scalar constInjector::averageVelocity(const label i) const Foam::scalar Foam::constInjector::averageVelocity(const label i) const
{ {
const injectorType& it = sm_.injectors()[i].properties(); const injectorType& it = sm_.injectors()[i].properties();
scalar dt = it.teoi() - it.tsoi(); scalar dt = it.teoi() - it.tsoi();
@ -207,8 +204,4 @@ scalar constInjector::averageVelocity(const label i) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(definedHollowConeInjector, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(definedHollowConeInjector, 0); injectorModel,
definedHollowConeInjector,
addToRunTimeSelectionTable dictionary
( );
injectorModel, }
definedHollowConeInjector,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::definedHollowConeInjector::definedHollowConeInjector
definedHollowConeInjector::definedHollowConeInjector
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -128,13 +125,13 @@ definedHollowConeInjector::definedHollowConeInjector
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
definedHollowConeInjector::~definedHollowConeInjector() Foam::definedHollowConeInjector::~definedHollowConeInjector()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar definedHollowConeInjector::d0 Foam::scalar Foam::definedHollowConeInjector::d0
( (
const label n, const label n,
const scalar t const scalar t
@ -146,7 +143,7 @@ scalar definedHollowConeInjector::d0
} }
vector definedHollowConeInjector::direction Foam::vector Foam::definedHollowConeInjector::direction
( (
const label n, const label n,
const label hole, const label hole,
@ -204,7 +201,7 @@ vector definedHollowConeInjector::direction
} }
scalar definedHollowConeInjector::velocity Foam::scalar Foam::definedHollowConeInjector::velocity
( (
const label i, const label i,
const scalar time const scalar time
@ -226,7 +223,8 @@ scalar definedHollowConeInjector::velocity
} }
scalar definedHollowConeInjector::averageVelocity(const label i) const Foam::scalar
Foam::definedHollowConeInjector::averageVelocity(const label i) const
{ {
const injectorType& it = sm_.injectors()[i].properties(); const injectorType& it = sm_.injectors()[i].properties();
scalar dt = it.teoi() - it.tsoi(); scalar dt = it.teoi() - it.tsoi();
@ -234,8 +232,4 @@ scalar definedHollowConeInjector::averageVelocity(const label i) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(definedPressureSwirlInjector, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(definedPressureSwirlInjector, 0); injectorModel,
definedPressureSwirlInjector,
addToRunTimeSelectionTable dictionary
( );
injectorModel, }
definedPressureSwirlInjector,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::definedPressureSwirlInjector::definedPressureSwirlInjector
definedPressureSwirlInjector::definedPressureSwirlInjector
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -80,13 +77,13 @@ definedPressureSwirlInjector::definedPressureSwirlInjector
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
definedPressureSwirlInjector::~definedPressureSwirlInjector() Foam::definedPressureSwirlInjector::~definedPressureSwirlInjector()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar definedPressureSwirlInjector::d0 Foam::scalar Foam::definedPressureSwirlInjector::d0
( (
const label n, const label n,
const scalar t const scalar t
@ -206,7 +203,7 @@ scalar definedPressureSwirlInjector::d0
} }
vector definedPressureSwirlInjector::direction Foam::vector Foam::definedPressureSwirlInjector::direction
( (
const label n, const label n,
const label hole, const label hole,
@ -255,7 +252,7 @@ vector definedPressureSwirlInjector::direction
} }
scalar definedPressureSwirlInjector::velocity Foam::scalar Foam::definedPressureSwirlInjector::velocity
( (
const label i, const label i,
const scalar time const scalar time
@ -265,7 +262,7 @@ scalar definedPressureSwirlInjector::velocity
} }
scalar definedPressureSwirlInjector::averageVelocity(const label i) const Foam::scalar Foam::definedPressureSwirlInjector::averageVelocity(const label i) const
{ {
const injectorType& it = sm_.injectors()[i].properties(); const injectorType& it = sm_.injectors()[i].properties();
@ -284,7 +281,7 @@ scalar definedPressureSwirlInjector::averageVelocity(const label i) const
} }
scalar definedPressureSwirlInjector::kv Foam::scalar Foam::definedPressureSwirlInjector::kv
( (
const label inj, const label inj,
const scalar massFlow, const scalar massFlow,
@ -316,7 +313,7 @@ scalar definedPressureSwirlInjector::kv
} }
scalar definedPressureSwirlInjector::deltaPressureInj Foam::scalar Foam::definedPressureSwirlInjector::deltaPressureInj
( (
const scalar time, const scalar time,
const label inj const label inj
@ -328,7 +325,8 @@ scalar definedPressureSwirlInjector::deltaPressureInj
} }
scalar definedPressureSwirlInjector::averagePressure(const label inj) const Foam::scalar
Foam::definedPressureSwirlInjector::averagePressure(const label inj) const
{ {
const injectorType& it = sm_.injectors()[inj].properties(); const injectorType& it = sm_.injectors()[inj].properties();
@ -337,8 +335,4 @@ scalar definedPressureSwirlInjector::averagePressure(const label inj) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(hollowConeInjector, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(hollowConeInjector, 0); injectorModel,
hollowConeInjector,
addToRunTimeSelectionTable dictionary
( );
injectorModel, }
hollowConeInjector,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::hollowConeInjector::hollowConeInjector
hollowConeInjector::hollowConeInjector
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -104,13 +101,13 @@ hollowConeInjector::hollowConeInjector
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
hollowConeInjector::~hollowConeInjector() Foam::hollowConeInjector::~hollowConeInjector()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar hollowConeInjector::d0 Foam::scalar Foam::hollowConeInjector::d0
( (
const label, const label,
const scalar const scalar
@ -120,7 +117,7 @@ scalar hollowConeInjector::d0
} }
vector hollowConeInjector::direction Foam::vector Foam::hollowConeInjector::direction
( (
const label n, const label n,
const label hole, const label hole,
@ -171,7 +168,7 @@ vector hollowConeInjector::direction
} }
scalar hollowConeInjector::velocity Foam::scalar Foam::hollowConeInjector::velocity
( (
const label i, const label i,
const scalar time const scalar time
@ -193,7 +190,7 @@ scalar hollowConeInjector::velocity
} }
scalar hollowConeInjector::averageVelocity(const label i) const Foam::scalar Foam::hollowConeInjector::averageVelocity(const label i) const
{ {
const injectorType& it = sm_.injectors()[i].properties(); const injectorType& it = sm_.injectors()[i].properties();
scalar dt = it.teoi() - it.tsoi(); scalar dt = it.teoi() - it.tsoi();
@ -201,8 +198,4 @@ scalar hollowConeInjector::averageVelocity(const label i) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -29,21 +29,18 @@ License
#include "injectorModel.H" #include "injectorModel.H"
#include "volFields.H" #include "volFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(injectorModel, 0);
defineRunTimeSelectionTable(injectorModel, dictionary);
}
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
defineTypeNameAndDebug(injectorModel, 0);
defineRunTimeSelectionTable(injectorModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::injectorModel::injectorModel
injectorModel::injectorModel
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -58,12 +55,8 @@ injectorModel::injectorModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
injectorModel::~injectorModel() Foam::injectorModel::~injectorModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "mathematicalConstants.H" #include "mathematicalConstants.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(pressureSwirlInjector, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(pressureSwirlInjector, 0); injectorModel,
pressureSwirlInjector,
addToRunTimeSelectionTable dictionary
( );
injectorModel, }
pressureSwirlInjector,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::pressureSwirlInjector::pressureSwirlInjector
pressureSwirlInjector::pressureSwirlInjector
( (
const dictionary& dict, const dictionary& dict,
spray& sm spray& sm
@ -90,13 +87,13 @@ pressureSwirlInjector::pressureSwirlInjector
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
pressureSwirlInjector::~pressureSwirlInjector() Foam::pressureSwirlInjector::~pressureSwirlInjector()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
scalar pressureSwirlInjector::d0 Foam::scalar Foam::pressureSwirlInjector::d0
( (
const label n, const label n,
const scalar t const scalar t
@ -128,7 +125,7 @@ scalar pressureSwirlInjector::d0
} }
vector pressureSwirlInjector::direction Foam::vector Foam::pressureSwirlInjector::direction
( (
const label n, const label n,
const label hole, const label hole,
@ -177,7 +174,7 @@ vector pressureSwirlInjector::direction
} }
scalar pressureSwirlInjector::velocity Foam::scalar Foam::pressureSwirlInjector::velocity
( (
const label i, const label i,
const scalar time const scalar time
@ -187,7 +184,7 @@ scalar pressureSwirlInjector::velocity
} }
scalar pressureSwirlInjector::averageVelocity(const label i) const Foam::scalar Foam::pressureSwirlInjector::averageVelocity(const label i) const
{ {
const injectorType& it = sm_.injectors()[i].properties(); const injectorType& it = sm_.injectors()[i].properties();
@ -206,7 +203,7 @@ scalar pressureSwirlInjector::averageVelocity(const label i) const
} }
scalar pressureSwirlInjector::kv Foam::scalar Foam::pressureSwirlInjector::kv
( (
const label inj, const label inj,
const scalar massFlow, const scalar massFlow,
@ -237,7 +234,7 @@ scalar pressureSwirlInjector::kv
} }
scalar pressureSwirlInjector::deltaPressureInj Foam::scalar Foam::pressureSwirlInjector::deltaPressureInj
( (
const scalar time, const scalar time,
const label inj const label inj
@ -249,7 +246,7 @@ scalar pressureSwirlInjector::deltaPressureInj
} }
scalar pressureSwirlInjector::averagePressure(const label inj) const Foam::scalar Foam::pressureSwirlInjector::averagePressure(const label inj) const
{ {
const injectorType& it = sm_.injectors()[inj].properties(); const injectorType& it = sm_.injectors()[inj].properties();
@ -259,8 +256,4 @@ scalar pressureSwirlInjector::averagePressure(const label inj) const
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -28,27 +28,24 @@ License
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
#include "wallPolyPatch.H" #include "wallPolyPatch.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(reflectParcel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(reflectParcel, 0); wallModel,
reflectParcel,
addToRunTimeSelectionTable dictionary
( );
wallModel, }
reflectParcel,
dictionary
);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::reflectParcel::reflectParcel
reflectParcel::reflectParcel
( (
const dictionary& dict, const dictionary& dict,
const volVectorField& U, const volVectorField& U,
@ -64,14 +61,14 @@ reflectParcel::reflectParcel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
reflectParcel::~reflectParcel() Foam::reflectParcel::~reflectParcel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
// Return 'keepParcel' // Return 'keepParcel'
bool reflectParcel::wallTreatment bool Foam::reflectParcel::wallTreatment
( (
parcel& p, parcel& p,
const label globalFacei const label globalFacei
@ -156,7 +153,7 @@ bool reflectParcel::wallTreatment
// translation // translation
vector Ur = p.U() - Ub; vector Ur = p.U() - Ub;
scalar Urn = Ur & Sf; scalar Urn = Ur & Sf;
/* /*
if (mag(Ub-v) > SMALL) if (mag(Ub-v) > SMALL)
{ {
Info<< "reflectParcel:: v = " << v Info<< "reflectParcel:: v = " << v
@ -167,7 +164,7 @@ bool reflectParcel::wallTreatment
<< ", name = " << mesh_.boundaryMesh()[patchi].name() << ", name = " << mesh_.boundaryMesh()[patchi].name()
<< endl; << endl;
} }
*/ */
if (Urn > 0.0) if (Urn > 0.0)
{ {
p.U() -= (1.0 + elasticity_)*Urn*Sf; p.U() -= (1.0 + elasticity_)*Urn*Sf;
@ -187,8 +184,4 @@ bool reflectParcel::wallTreatment
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -27,29 +27,24 @@ License
#include "removeParcel.H" #include "removeParcel.H"
#include "addToRunTimeSelectionTable.H" #include "addToRunTimeSelectionTable.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(removeParcel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // addToRunTimeSelectionTable
(
defineTypeNameAndDebug(removeParcel, 0); wallModel,
removeParcel,
addToRunTimeSelectionTable dictionary
( );
wallModel, }
removeParcel,
dictionary
);
// * * * * * * * * * * * * * Private Member Functions * * * * * * * * * * * //
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
// Construct from components Foam::removeParcel::removeParcel
removeParcel::removeParcel
( (
const dictionary& dict, const dictionary& dict,
const volVectorField& U, const volVectorField& U,
@ -62,13 +57,13 @@ removeParcel::removeParcel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
removeParcel::~removeParcel() Foam::removeParcel::~removeParcel()
{} {}
// * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * Member Functions * * * * * * * * * * * * * //
bool removeParcel::wallTreatment bool Foam::removeParcel::wallTreatment
( (
parcel&, parcel&,
const label facei const label facei
@ -78,8 +73,4 @@ bool removeParcel::wallTreatment
} }
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -26,21 +26,18 @@ License
#include "wallModel.H" #include "wallModel.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
defineTypeNameAndDebug(wallModel, 0);
// * * * * * * * * * * * * * * Static Data Members * * * * * * * * * * * * * // defineRunTimeSelectionTable(wallModel, dictionary);
}
defineTypeNameAndDebug(wallModel, 0);
defineRunTimeSelectionTable(wallModel, dictionary);
// * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Constructors * * * * * * * * * * * * * * //
wallModel::wallModel Foam::wallModel::wallModel
( (
const dictionary& dict, const dictionary& dict,
const volVectorField& U, const volVectorField& U,
@ -55,12 +52,8 @@ wallModel::wallModel
// * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * Destructor * * * * * * * * * * * * * * * //
wallModel::~wallModel() Foam::wallModel::~wallModel()
{} {}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam
// ************************************************************************* // // ************************************************************************* //

View File

@ -40,10 +40,12 @@ SourceFiles
#include "spray.H" #include "spray.H"
#include "IOdictionary.H" #include "IOdictionary.H"
#include "fvCFD.H"
#include "autoPtr.H" #include "autoPtr.H"
#include "runTimeSelectionTables.H" #include "runTimeSelectionTables.H"
#include "volFields.H"
#include "surfaceFields.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam namespace Foam
@ -91,9 +93,9 @@ public:
//- Construct from components //- Construct from components
wallModel wallModel
( (
const dictionary& dict, const dictionary&,
const volVectorField& U, const volVectorField& U,
spray& sm spray&
); );
@ -105,7 +107,7 @@ public:
static autoPtr<wallModel> New static autoPtr<wallModel> New
( (
const dictionary& dict, const dictionary&,
const volVectorField& U, const volVectorField& U,
spray& sm spray& sm
); );
@ -116,7 +118,7 @@ public:
//- Return true if parcel is to be kept, false if it is to be removed //- Return true if parcel is to be kept, false if it is to be removed
virtual bool wallTreatment virtual bool wallTreatment
( (
parcel& parcel, parcel&,
const label facei const label facei
) const = 0; ) const = 0;
}; };

View File

@ -8,5 +8,5 @@ EXE_LIBS = \
-lfiniteVolume \ -lfiniteVolume \
-llagrangian \ -llagrangian \
-lpotential \ -lpotential \
-lmolecularMeasurements -lmolecularMeasurements

View File

@ -254,7 +254,7 @@ public:
// second the octant with boundary nearest to the point etc. // second the octant with boundary nearest to the point etc.
inline void searchOrder inline void searchOrder
( (
const point& pt, const point& pt,
FixedList<direction, 8>& octantOrder FixedList<direction, 8>& octantOrder
) const; ) const;

View File

@ -242,7 +242,7 @@ inline void Foam::treeBoundBox::searchOrder
if (dist.z() < 0) if (dist.z() < 0)
{ {
octant |= treeBoundBox::FRONTHALF; octant |= treeBoundBox::FRONTHALF;
dist.z() *= -1; dist.z() *= -1;
} }
direction min = 0; direction min = 0;
@ -252,44 +252,44 @@ inline void Foam::treeBoundBox::searchOrder
if (dist.x() < dist.y()) if (dist.x() < dist.y())
{ {
if (dist.y() < dist.z()) if (dist.y() < dist.z())
{ {
min = treeBoundBox::RIGHTHALF; min = treeBoundBox::RIGHTHALF;
mid = treeBoundBox::TOPHALF; mid = treeBoundBox::TOPHALF;
max = treeBoundBox::FRONTHALF; max = treeBoundBox::FRONTHALF;
} }
else if (dist.z() < dist.x()) else if (dist.z() < dist.x())
{ {
min = treeBoundBox::FRONTHALF; min = treeBoundBox::FRONTHALF;
mid = treeBoundBox::RIGHTHALF; mid = treeBoundBox::RIGHTHALF;
max = treeBoundBox::TOPHALF; max = treeBoundBox::TOPHALF;
} }
else else
{ {
min = treeBoundBox::RIGHTHALF; min = treeBoundBox::RIGHTHALF;
mid = treeBoundBox::FRONTHALF; mid = treeBoundBox::FRONTHALF;
max = treeBoundBox::TOPHALF; max = treeBoundBox::TOPHALF;
} }
} }
else else
{ {
if (dist.z() < dist.y()) if (dist.z() < dist.y())
{ {
min = treeBoundBox::FRONTHALF; min = treeBoundBox::FRONTHALF;
mid = treeBoundBox::TOPHALF; mid = treeBoundBox::TOPHALF;
max = treeBoundBox::RIGHTHALF; max = treeBoundBox::RIGHTHALF;
} }
else if (dist.x() < dist.z()) else if (dist.x() < dist.z())
{ {
min = treeBoundBox::TOPHALF; min = treeBoundBox::TOPHALF;
mid = treeBoundBox::RIGHTHALF; mid = treeBoundBox::RIGHTHALF;
max = treeBoundBox::FRONTHALF; max = treeBoundBox::FRONTHALF;
} }
else else
{ {
min = treeBoundBox::TOPHALF; min = treeBoundBox::TOPHALF;
mid = treeBoundBox::FRONTHALF; mid = treeBoundBox::FRONTHALF;
max = treeBoundBox::RIGHTHALF; max = treeBoundBox::RIGHTHALF;
} }
} }
// Primary subOctant // Primary subOctant

View File

@ -101,14 +101,7 @@ bool Foam::interpolationLookUpTable<Type>::checkRange
const label interfield const label interfield
) const ) const
{ {
if (lookUpValue >= min_[interfield] && lookUpValue <= max_[interfield]) return lookUpValue >= min_[interfield] && lookUpValue <= max_[interfield];
{
return true;
}
else
{
return false;
}
} }

View File

@ -46,13 +46,15 @@ SourceFiles
#include "scalarField.H" #include "scalarField.H"
#include "HashTable.H" #include "HashTable.H"
#include "IOdictionary.H" #include "IOdictionary.H"
#include "fvCFD.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
namespace Foam namespace Foam
{ {
// Forward declaration of classes
class fvMesh;
/*---------------------------------------------------------------------------*\ /*---------------------------------------------------------------------------*\
Class interpolationLookUpTable Declaration Class interpolationLookUpTable Declaration
\*---------------------------------------------------------------------------*/ \*---------------------------------------------------------------------------*/
@ -103,7 +105,7 @@ private:
// Private Member Functions // Private Member Functions
//- Read the table of data from file //- Read the table of data from file
void readTable(const word& instance, const fvMesh& mesh); void readTable(const word& instance, const fvMesh&);
//- Dimension table from dictionaries input and output //- Dimension table from dictionaries input and output
void dimensionTable(); void dimensionTable();
@ -144,16 +146,16 @@ public:
//- Construct given the name of the file containing the table of data //- Construct given the name of the file containing the table of data
interpolationLookUpTable interpolationLookUpTable
( (
const fileName& fn, const fileName&,
const word& instance, const word& instance,
const fvMesh& mesh const fvMesh&
); );
//- Construct from dictionary //- Construct from dictionary
interpolationLookUpTable(const dictionary& dict); interpolationLookUpTable(const dictionary&);
//- Construct copy //- Construct copy
interpolationLookUpTable(const interpolationLookUpTable& interpTable); interpolationLookUpTable(const interpolationLookUpTable&);
// Member Functions // Member Functions
@ -167,10 +169,10 @@ public:
//- Write Look Up Table to filename. //- Write Look Up Table to filename.
void write void write
( (
Ostream& os, Ostream&,
const fileName& fn, const fileName&,
const word& instance, const word& instance,
const fvMesh& mesh const fvMesh&
) const; ) const;
@ -211,17 +213,13 @@ public:
}; };
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "interpolationLookUpTableI.H"
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
} // End namespace Foam } // End namespace Foam
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
#include "interpolationLookUpTableI.H"
#ifdef NoRepository #ifdef NoRepository
# include "interpolationLookUpTable.C" # include "interpolationLookUpTable.C"