CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Nonuniform internal temperature field (https://www.cfd-online.com/Forums/openfoam-pre-processing/156268-nonuniform-internal-temperature-field.html)

deve July 7, 2015 02:05

Nonuniform internal temperature field
 
Good morning,

I'm working on a simulation using porousInterFoam with different porousZones. In this simulation a liquid flows from one end of the domain to the other one (see red arrows). While flowing from one end to the other, the fluid passes over areas with different temperatures. Since my viscosity is highly dependant on the temperature I have to take this effect into consideration.
My problem is that don't know how I can set the interField in such a way that for example zone 1 has 300K and zone 2 has 400K.
I found this post
http://www.cfd-online.com/Forums/openfoam-solving/111568-difference-between-internalfield-setfields.html
but saw that they work with boxes and stuff, which I'm not familiar with.
For the creation of the mesh, I had to use Hypermesh since the geometry is more complex than the one in the picture attached.

http://www.pic-upload.de/view-276034...rfeld.png.html


So my questions are:
1) is it possible to apply a nonuniform temperature field where different elements have different temperatures?
2) If so, how do I have to modify the input-file for "T"?
3) Is there a conveniant way of creating some kind of "zones" with hypermesh (sth. similar to a porousZone), exporting it in .cas-format and then be able to access the zones saying

Code:


internalField{
    zone1  400;
    zone2  300;
}

I appreciate every answer.
Regards,
Deve

MSF July 7, 2015 11:39

Hello,

the boxes are very simple: first three numbers are the left bottom point of the box and the second three numbers are the right upper point of the box. A box refers to a Rectangle in 2D so the third coordinate does not matter.
Include two boxes in your setFieldsDict and run setFields before the start of your Simulation. Don't forget to copy your T-File.
A good example for all this can be found in the damBreak tutorial of OpenFoam.

Greetings

deve July 9, 2015 01:12

Quote:

Originally Posted by MSF (Post 554178)
Hello,

the boxes are very simple: first three numbers are the left bottom point of the box and the second three numbers are the right upper point of the box. A box refers to a Rectangle in 2D so the third coordinate does not matter.
Include two boxes in your setFieldsDict and run setFields before the start of your Simulation. Don't forget to copy your T-File.
A good example for all this can be found in the damBreak tutorial of OpenFoam.

Greetings

Thanks for your reply. That might be working very well for simple geometries, since my mesh absolutely nonuniform that might by a bit difficiult, but nevertheless possible.

But assuming, I'm able to create this cellZone, how do I declarate in the "T"-file that different zones have different temperatures?

Nicolastheterminator February 3, 2016 10:56

Any answer to this?
 
Hi,

The answer to this question really interests me.

Has anybody solved it?

Kind regards,
Andris


All times are GMT -4. The time now is 07:27.