CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Closed Volume HeatSource - error in mass balance

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 15, 2020, 07:40
Default Closed Volume HeatSource - error in mass balance
  #1
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
Hi guys,
I am working the last days on the following problem:

During a compressible simulation (rhoPimpleFoam) I am introducing a heat source via fvOptions during runtime over a cellSet using perfectGas as equation of state.

As a testcase, my domain is surrounded by walls, so the density should be constant and result in a pressure rise.

The problem is that the density changes, also in my closed system. This does not make sense.

How can i overcome this issue? What is wrong with my setup?

fvOptions:
Code:
heatSource
{
    type            scalarSemiImplicitSource;
    active          on;
    timeStart       0.01;
    duration        1e-04;
	
    selectionMode   cellSet;
    cellSet      heatSourceCellSet;
    volumeMode      absolute;
    injectionRateSuSp
        {
            e          (17000000000 0);
        }
}
p-BC:
Code:
internalField uniform 101325;

boundaryField
{
    
   "(.*_wall)"
    {
        type zeroGradient;
    }
   "(.*_empty)"
    {
        type empty;
    }      
    
}
T-BC:
Code:
internalField uniform 298;

boundaryField
{
    
   "(.*_wall)"
    {
        type zeroGradient;
    }
   "(.*_empty)"
    {
        type empty;
    }      
    
}
U-BC
Code:
   "(.*_wall)"
    {
        type fixedValue;
        value	uniform (0 0 0);
    }

   "(.*_empty)"
    {
        type empty;
    }
I did already changed the pressure and Temperature BCs to fixedValue, nothing changed...

So what ist the problem here?

In the attachement you can see p,T and rho at t=0.01s, when the source term is activated. The density is decreasing over the cellSet area.
Attached Images
File Type: jpg error.jpg (43.8 KB, 15 views)
hxaxtma is offline   Reply With Quote

Old   July 17, 2020, 07:25
Default
  #2
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
No one has an idea?
hxaxtma is offline   Reply With Quote

Old   July 17, 2020, 11:21
Default
  #3
Member
 
Ran
Join Date: Aug 2016
Posts: 69
Rep Power: 10
random_ran is on a distinguished road
How about using incompressible solver?
__________________
Yours in CFD,

Ran
random_ran is offline   Reply With Quote

Old   July 20, 2020, 08:19
Default
  #4
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
Since there are compressible effects present, incompressible treatment is not suitable...
hxaxtma is offline   Reply With Quote

Old   July 27, 2020, 10:23
Default
  #5
Senior Member
 
Join Date: Jan 2014
Posts: 179
Rep Power: 12
hxaxtma is on a distinguished road
Still need help on this...
hxaxtma is offline   Reply With Quote

Reply


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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
Water subcooled boiling Attesz CFX 7 January 5, 2013 04:32
Mass fraction and volume fraction eric weddle CFX 0 September 26, 2011 06:02
Difference between Volume Fraction and Mass Fraction in CEL foo7 CFX 0 September 21, 2011 09:45
channelFoam for a 3D pipe AlmostSurelyRob OpenFOAM 3 June 24, 2011 14:06


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