Go to the documentation of this file.00001 Info<< "Reading thermal properties\n" << endl;
00002
00003 IOdictionary thermalProperties
00004 (
00005 IOobject
00006 (
00007 "thermalProperties",
00008 runTime.constant(),
00009 mesh,
00010 IOobject::MUST_READ,
00011 IOobject::NO_WRITE
00012 )
00013 );
00014
00015 Switch thermalStress(thermalProperties.lookup("thermalStress"));
00016
00017 dimensionedScalar threeKalpha
00018 (
00019 "threeKalpha",
00020 dimensionSet(0, 2, -2 , -1, 0),
00021 0
00022 );
00023
00024 dimensionedScalar DT
00025 (
00026 "DT",
00027 dimensionSet(0, 2, -1 , 0, 0),
00028 0
00029 );
00030
00031 if (thermalStress)
00032 {
00033 dimensionedScalar C(thermalProperties.lookup("C"));
00034 dimensionedScalar rhoK(thermalProperties.lookup("k"));
00035 dimensionedScalar alpha(thermalProperties.lookup("alpha"));
00036
00037 Info<< "Normalising k : k/rho\n" << endl;
00038 dimensionedScalar k = rhoK/rho;
00039
00040 Info<< "Calculating thermal coefficients\n" << endl;
00041
00042 threeKalpha = threeK*alpha;
00043 DT.value() = (k/C).value();
00044
00045 Info<< "threeKalpha = " << threeKalpha.value() << " Pa/rho\n";
00046 }
00047
00048