CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM (http://www.cfd-online.com/Forums/openfoam/)
-   -   thermal conductivity --> anisotropic material (http://www.cfd-online.com/Forums/openfoam/78194-thermal-conductivity-anisotropic-material.html)

val46 July 15, 2010 02:52

thermal conductivity --> anisotropic material
 
Hello,

i have a thermal conduction problem.
I need to modell a cylinder with different conductivity values in x,y and z direction. The cylinder is within a metal tube (isotropic material ;))

I think i can simply create 3 variables in transportproperties. Let's say lambdaX, lambdaY and lambdaZ. But after that i haven't a glue what to do next. (I'm pretty new to OpenFoam).


Thanks in advance.

Toni

benk July 19, 2010 10:12

You just need to make a volTensorField for your thermal conductivities. In your time=0 directory, create your conductivity field using something like:

Code:

FoamFile
{
    version    2.0;
    format      ascii;
    class      volTensorField;
    object      Ds;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions      [0 2 -1 0 0 0 0];

internalField  uniform (xx 0 0 0 yy 0 0 0 zz);

boundaryField
{
...
}

where xx yy and zz are the values in the 3 different directions.

val46 July 20, 2010 06:26

Hi,

thanks for your reply.

How will the solver recognize the new file?
Don't i have to modify the solver for that?

benk July 20, 2010 09:19

You'll have to add the field by:

Code:

volTensorField lambda
(
IOobject
(
"lambda",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
),
mesh
);

Or you could also just make a tensor in your transportProperties file and read it into your solver using

Code:

dimensionedTensor lambda(transportProperties.lookup("lambda"));


All times are GMT -4. The time now is 05:00.