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

 val46 July 15, 2010 01: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).

Toni

 benk July 19, 2010 09: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 05:26

Hi,

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

 benk July 20, 2010 08: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 20:55.