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

icoFoam with density

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Tobi

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2015, 15:27
Default icoFoam with density
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Dear all Foamers,

I want to ask for help, because at the moment I get stuck.

Problem:
I want to make a cavity case in which the bottom is cooled and therefore density change will force flow to compensate the density change.

The flow is incompressible and laminar, hence this, I started to modify icoFoam to my problem.

  • I implemented the passive temperature equation to get the temperature field (in my case temperature is only transported due to diffusion effects). Thus, only ddt and laplacian are in the equaion (not a big deal)
  • I implemented a new volScalarField (rho) that is updated with the temperature distribution. rho = f(T) and the function is linear (nothing special)
  • Then I added and modified the momentum equation (added rho again)
  • At least I checked the pressure equation and changed the necessary stuff for density based calculation. At least I added ddt(rho) to the pressure equation (thanks to Alex for the hint). Without that term nothing will happen. Density change but no source for the flow is generated (pressure = constant).


Till here (thanks to Alex for support).

Now my cavity case is cooled at the bottom, left right and top are opened and due to the temperature change I get a density change that should force flow to compensate this change (continuity has to be satisfied).

While solving, I get the problem, that the Co no reaches 40000 and the solution is non physical. Already the first time steps are bad (1e-7).

It would be a pleasure if someone can help me in that case, or has some information for me. I think made a mistake in the implementation of pEqn()
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   July 20, 2015, 16:43
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

solved. Re-programmed all stuff @home and it work now.
dasa likes this.
__________________
Keep foaming,
Tobias Holzmann
Tobi 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
Current density visualisation (PEM fuel cell add-on module) pchoopanya FLUENT 10 August 21, 2023 14:33
Import density to simple algoritm in icoFoam rapierrz OpenFOAM Programming & Development 0 April 28, 2015 12:23
Density in icoFoam Densidad en icoFoam manuel OpenFOAM Running, Solving & CFD 8 September 22, 2010 04:10
REAL GAS UDF brian FLUENT 6 September 11, 2006 08:23
Warning 097- AB Siemens 6 November 15, 2004 04:41


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