43 return volVectorField::null();
56 const char c = surfaceName[i];
58 if (isalnum(
c) ||
c ==
'_' ||
c ==
'.')
continue;
60 parts.
append(surfaceName(i0, i - i0));
66 parts.
append(surfaceName(i0, surfaceName.size() - i0));
72 word& part = parts[parti];
76 if (i == word::npos) i = part.size();
79 while (i > 0 && part(i - 2, 2) ==
"_0") i -= 2;
83 if (i > 0 && part[i - 1] ==
'f')
85 part =
word(part(i - 1) + part(i, word::npos));
93 volName += parts[parti] + separators[parti];
95 volName += parts.
last();
98 if (volName == surfaceName)
100 return volVectorField::null();
107 : volVectorField::null();
graph_traits< Graph >::vertices_size_type size_type
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet & dimensions() const
Return dimensions.
const Mesh & mesh() const
Return mesh.
DynamicList< T, SizeInc, SizeMult, SizeDiv > & append(const T &)
Append an element at the end of the list.
Generic GeometricField class.
const word & name() const
Return name.
T & last()
Return the last element of the list.
A class for handling words, derived from string.
const dimensionedScalar c
Speed of light in a vacuum.
const dimensionSet dimTime
const dimensionSet dimDensity
const dimensionSet dimVelocity
const volVectorField & surfaceToVolVelocity(const surfaceVectorField &Uf)
Get the cell velocity field corresponding to a given face velocity, or a.
Return the vol-field velocity corresponding to a given surface-field velocity.