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

createSolidFields.H

Go to the documentation of this file.
00001     // Initialise solid field pointer lists
00002     PtrList<volScalarField> rhos(solidRegions.size());
00003     PtrList<volScalarField> cps(solidRegions.size());
00004     PtrList<volScalarField> rhosCps(solidRegions.size());
00005     PtrList<volScalarField> Ks(solidRegions.size());
00006     PtrList<volScalarField> Ts(solidRegions.size());
00007 
00008     // Populate solid field pointer lists
00009     forAll(solidRegions, i)
00010     {
00011         Info<< "*** Reading solid mesh thermophysical properties for region "
00012             << solidRegions[i].name() << nl << endl;
00013 
00014         Info<< "    Adding to rhos\n" << endl;
00015         rhos.set
00016         (
00017             i,
00018             new volScalarField
00019             (
00020                 IOobject
00021                 (
00022                     "rho",
00023                     runTime.timeName(),
00024                     solidRegions[i],
00025                     IOobject::MUST_READ,
00026                     IOobject::AUTO_WRITE
00027                 ),
00028                 solidRegions[i]
00029             )
00030         );
00031 
00032         Info<< "    Adding to cps\n" << endl;
00033         cps.set
00034         (
00035             i,
00036             new volScalarField
00037             (
00038                 IOobject
00039                 (
00040                     "cp",
00041                     runTime.timeName(),
00042                     solidRegions[i],
00043                     IOobject::MUST_READ,
00044                     IOobject::AUTO_WRITE
00045                 ),
00046                 solidRegions[i]
00047             )
00048         );
00049 
00050         rhosCps.set
00051         (
00052             i,
00053             new volScalarField("rhosCps", rhos[i]*cps[i])
00054         );
00055 
00056         Info<< "    Adding to Ks\n" << endl;
00057         Ks.set
00058         (
00059             i,
00060             new volScalarField
00061             (
00062                 IOobject
00063                 (
00064                     "Kcond",
00065                     runTime.timeName(),
00066                     solidRegions[i],
00067                     IOobject::MUST_READ,
00068                     IOobject::AUTO_WRITE
00069                 ),
00070                 solidRegions[i]
00071             )
00072         );
00073 
00074         Info<< "    Adding to Ts\n" << endl;
00075         Ts.set
00076         (
00077             i,
00078             new volScalarField
00079             (
00080                 IOobject
00081                 (
00082                     "T",
00083                     runTime.timeName(),
00084                     solidRegions[i],
00085                     IOobject::MUST_READ,
00086                     IOobject::AUTO_WRITE
00087                 ),
00088                 solidRegions[i]
00089             )
00090         );
00091     }
00092 
00093 // ************************ vim: set sw=4 sts=4 et: ************************ //
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines