This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H
Bernhard F.W. Gschaider c613c505d3 Version of surfactantFoam that is case-independent and a simple tutorial for it
--HG--
branch : proposal/famTutorialReorganizationBranch
rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files => applications/solvers/surfaceTracking/surfactantFoam/Make/files
rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/options => applications/solvers/surfaceTracking/surfactantFoam/Make/options
rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaFields.H => applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H
rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaMesh.H => applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H
rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createVolFields.H => applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H
rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/surfactantFoam.C => applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C
2011-01-29 15:17:55 +01:00

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();