49006b6ef6
--HG-- branch : proposal/famTutorialReorganizationBranch rename : applications/solvers/surfaceTracking/surfactantFoam/Make/files => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/files rename : applications/solvers/surfaceTracking/surfactantFoam/Make/options => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/Make/options rename : applications/solvers/surfaceTracking/surfactantFoam/createFaFields.H => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaFields.H rename : applications/solvers/surfaceTracking/surfactantFoam/createFaMesh.H => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createFaMesh.H rename : applications/solvers/surfaceTracking/surfactantFoam/createVolFields.H => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/createVolFields.H rename : applications/solvers/surfaceTracking/surfactantFoam/surfactantFoam.C => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereSurfactantFoam/surfactantFoam.C rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cs => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cs rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/Cvf => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/Cvf rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/0/U => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/0/U rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allclean => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allclean rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/Allrun => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/Allrun rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/faMesh/faMeshDefinition => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/faMesh/faMeshDefinition rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/boundary => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/boundary rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/cells => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/cells rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/faces => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/faces rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/neighbour => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/neighbour rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/owner => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/owner rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/constant/polyMesh/points => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/constant/polyMesh/points rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/controlDict => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/controlDict rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSchemes => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSchemes rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/faSolution => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/faSolution rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSchemes => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSchemes rename : tutorials/surfaceTracking/surfactantFoam/sphereTransport/system/fvSolution => tutorials/surfaceTracking/surfactantFoam/sphereTransport/sphereTransport/system/fvSolution
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();
|