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/createFaFields.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

63 lines
943 B
C

Info << "Reading field Cs" << endl;
areaScalarField Cs
(
IOobject
(
"Cs",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
aMesh
);
Info<< "Reading transportProperties\n" << endl;
IOdictionary transportProperties
(
IOobject
(
"transportProperties",
runTime.constant(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
)
);
Info<< "Reading diffusivity D\n" << endl;
dimensionedScalar Ds
(
transportProperties.lookup("Ds")
);
areaVectorField Us
(
IOobject
(
"Us",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::NO_WRITE
),
aMesh
);
edgeScalarField phis
(
IOobject
(
"phis",
runTime.timeName(),
mesh,
IOobject::NO_READ,
IOobject::NO_WRITE
),
linearEdgeInterpolate(Us) & aMesh.Le()
);