CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

chtMultiRegionSimpleFoam 3D

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 9, 2014, 06:32
Default chtMultiRegionSimpleFoam 3D
  #1
Member
 
Join Date: Oct 2014
Posts: 42
Rep Power: 2
Wien3 is on a distinguished road
Good Morning!
I have a simple question (at least I guess) that I'm sure you can solve.
I'm using the chtMultiRegionSimpleFoam in order to create a model which consists in a little cube which has heat transfer which my fluid (everything inside a pipe of 5x2x2).
I took planeWall2D as a model, and I achieved to draw it in 2D, but not in 3D model.
The problem is that I don't get a cube of 0.4L, I get a prism of 0.4x0.4x2 (so OpenFoam doesn't take care about Z dimensions). This is my topoSetDict file:

PHP Code:
actions
(
    
// fluid
    
{
        
name    fluid;
        
type    cellSet;
        
action  new;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (0 0 0 )(5 0.8 2);  //1°floor
        
}
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (0 0.8 0 )(5 1.2 0.8);  //2°floor front
        
}
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (0 0.8 0.8)(2.3 1.2 1.2); //2°floor inlet
        
}
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (2.7 0.8 0.8 )(5 1.2 1.2); //2°floor outlet
        
}
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (0 0.8 1.2 )(5 1.2 2);  //2°floor back
        
}
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  add;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (0 1.2 0 )(5 2 2);    //3°floor
        
}
    }
    {
        
name    fluid;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set fluid;
        }
    }

    
// cube
    
{
        
name    cube;
        
type    cellSet;
        
action  new;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (2.3 0.8 0.8 )(2.7 1.2 1.2);
        }
    }
    {
        
name    cube;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set cube;
        }
    }
); 
I also studied the MultiRegionHeaterRadiation and I tried also with this one:

PHP Code:
actions
(


    
// cube
    
{
        
name    cube;
        
type    cellSet;
        
action  new;
        
source  boxToCell;
        
sourceInfo
        
{
            
box (2.3 0.8 0.8 )(2.7 1.2 1.2);
        }
    }
    {
        
name    cube;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set cube;
        }
    }
    
// fluid
    
{
        
name    fluid;
        
type    cellZoneSet;
        
action  clear;
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  add;
        
source  cellToCell;
        
sourceInfo
        
{
            
set cube;
        }
    }
    {
        
name    fluid;
        
type    cellSet;
        
action  invert;
    }
    {
        
name    fluid;
        
type    cellZoneSet;
        
action  new;
        
source  setToCellZone;
        
sourceInfo
        
{
            
set fluid;
        }
    }
); 
With this one I get the same result (you can see in the image). At first I thought that maybe this solver don't work with 3D, but after studying the second case I'm sure it is not that.

I attach my complete case folder, maybe the failure is there.

Thank you in advance!
Attached Images
File Type: jpg Screenshot from 2014-12-09 11:31:37.jpg (36.5 KB, 14 views)
Attached Files
File Type: zip cube3D_cht.zip (25.5 KB, 1 views)
Wien3 is offline   Reply With Quote

Old   December 11, 2014, 04:17
Default
  #2
Member
 
Join Date: Oct 2014
Posts: 42
Rep Power: 2
Wien3 is on a distinguished road
I solved it!
It was enough to add the front and back face as "symmetry plane", and for having 3D mesh, change z component in the hexaedron in blockMesh (if it is input a "1" error are produced in front and back faces)

I hope it can help somebody!
Wien3 is offline   Reply With Quote

Old   December 27, 2014, 11:19
Default chtMultiRegionSimpleFoam - sphere around a fluid
  #3
New Member
 
Join Date: Oct 2013
Posts: 3
Rep Power: 3
salvo-K61IC is on a distinguished road
Hi all guys,

i am trying to simulate a static sphere (hot sphere) in a fluid (cold fluid) which transfers heat by difference of temperature.I created the mesh with salome and i have two regions:

fluidRegion (air) , solidRegion (sphere)

My goal is to get a convergence with HeatFlux (computed by using the tool wallHeatFlux available in OF2.3.X) increasing the cells of the mesh.

I started playing with planeWall2D as a model, but when i started using these kind of problems i do not get any convergence with wall flux.



here i enclose the folder 0 to check BC ( i am not sure about them)! , could someone please help me with this case??

i am trying making different changes but i do not get a right heat flux between both regions, even if residuals go below than 10^-5.

I ll really appreciate, thank you very much in advance!!

P.S. I use OpenFoam 2.3.x and salome 6.6.0 to create meshes
Attached Files
File Type: zip 0.zip (12.8 KB, 0 views)
salvo-K61IC is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 18:45.