FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

createFields.H

Go to the documentation of this file.
00001     Info<< "Reading thermophysical properties\n" << endl;
00002 
00003     autoPtr<basicPsiThermo> pThermo
00004     (
00005         basicPsiThermo::New(mesh)
00006     );
00007     basicPsiThermo& thermo = pThermo();
00008 
00009     volScalarField rho
00010     (
00011         IOobject
00012         (
00013             "rho",
00014             runTime.timeName(),
00015             mesh,
00016             IOobject::NO_READ,
00017             IOobject::AUTO_WRITE
00018         ),
00019         thermo.rho()
00020     );
00021 
00022     Info<< "\nReading field U\n" << endl;
00023     volVectorField U
00024     (
00025         IOobject
00026         (
00027             "U",
00028             runTime.timeName(),
00029             mesh,
00030             IOobject::MUST_READ,
00031             IOobject::AUTO_WRITE
00032         ),
00033         mesh
00034     );
00035 
00036     #include <finiteVolume/compressibleCreatePhi.H>
00037 
00038     Info<< "Creating turbulence model\n" << endl;
00039     autoPtr<compressible::turbulenceModel> turbulence
00040     (
00041         compressible::turbulenceModel::New
00042         (
00043             rho,
00044             U,
00045             phi,
00046             thermo
00047         )
00048     );
00049 
00050     word kinematicCloudName("kinematicCloud");
00051     args.optionReadIfPresent("cloudName", kinematicCloudName);
00052 
00053     Info<< "Constructing kinematicCloud " << kinematicCloudName << endl;
00054     basicKinematicCloud kinematicCloud
00055     (
00056         kinematicCloudName,
00057         rho,
00058         U,
00059         thermo.mu(),
00060         g
00061     );
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines