The timeName() function simply returns the dimensionedScalar::name() which holds the user-time name of the current time and now that timeName() is no longer virtual the dimensionedScalar::name() can be called directly. The timeName() function implementation is maintained for backward-compatibility.
77 lines
1.2 KiB
C++
77 lines
1.2 KiB
C++
label patchi = which_part - 2;
|
|
|
|
if (nVar >= Num_variables - nSprayVariables)
|
|
{
|
|
return Z_UNDEF;
|
|
}
|
|
|
|
typeIOobject<volTensorField> fieldObjectPtr
|
|
(
|
|
fieldNames[var2field[nVar]],
|
|
runTime.name(),
|
|
mesh,
|
|
IOobject::NO_READ
|
|
);
|
|
|
|
if (!fieldObjectPtr.headerOk())
|
|
{
|
|
return Z_UNDEF;
|
|
}
|
|
|
|
IOobject fieldObject
|
|
(
|
|
fieldNames[var2field[nVar]],
|
|
runTime.name(),
|
|
mesh,
|
|
IOobject::MUST_READ,
|
|
IOobject::NO_WRITE
|
|
);
|
|
|
|
volTensorField sf
|
|
(
|
|
fieldObject,
|
|
mesh
|
|
);
|
|
|
|
const tensorField& tf = sf.boundaryField()[patchi];
|
|
const polyBoundaryMesh& bMesh = meshPtr->boundaryMesh();
|
|
|
|
if (which_type == Z_TRI03)
|
|
{
|
|
label counter = 1;
|
|
forAll(tf, n)
|
|
{
|
|
label nPoints = bMesh[patchi][n].size();
|
|
if (nPoints == 3)
|
|
{
|
|
#include "tensorConversion.H"
|
|
}
|
|
}
|
|
}
|
|
|
|
if (which_type == Z_QUA04)
|
|
{
|
|
label counter = 1;
|
|
forAll(tf, n)
|
|
{
|
|
label nPoints = bMesh[patchi][n].size();
|
|
if (nPoints == 4)
|
|
{
|
|
#include "tensorConversion.H"
|
|
}
|
|
}
|
|
}
|
|
|
|
if (which_type == Z_NSIDED)
|
|
{
|
|
label counter = 1;
|
|
forAll(tf, n)
|
|
{
|
|
label nPoints = bMesh[patchi][n].size();
|
|
if ((nPoints != 3) && (nPoints != 4))
|
|
{
|
|
#include "tensorConversion.H"
|
|
}
|
|
}
|
|
}
|