db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
36 lines
759 B
C
36 lines
759 B
C
// Create volume-to surface mapping object
|
|
volSurfaceMapping vsm(aMesh);
|
|
|
|
volScalarField Cvf
|
|
(
|
|
IOobject
|
|
(
|
|
"Cvf",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh,
|
|
dimensionedScalar("0", dimless/dimLength, 0)
|
|
);
|
|
|
|
vsm.mapToVolume(Cs, Cvf.boundaryField());
|
|
Cvf.write();
|
|
|
|
volVectorField U
|
|
(
|
|
IOobject
|
|
(
|
|
"U",
|
|
runTime.timeName(),
|
|
mesh,
|
|
IOobject::NO_READ,
|
|
IOobject::AUTO_WRITE
|
|
),
|
|
mesh,
|
|
dimensionedVector("zero", dimVelocity, vector::zero)
|
|
);
|
|
|
|
vsm.mapToVolume(Us, U.boundaryField());
|
|
U.write();
|