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

Conditionally solving governing equations in the solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 29, 2018, 05:34
Post Conditionally solving governing equations in the solver
  #1
New Member
 
Ujjwal Chetan
Join Date: Oct 2018
Posts: 2
Rep Power: 0
lightMyCandle is on a distinguished road
Dear friends,
I have to add temperature equation to icoFoam solver with and without source terms to be solved conditionally in different regions, i.e.:

for region 1
{
energy equation + source_term =0;
}

for region 2
{
energy equation =0;
}

I know at which line I have to add these equations. I have done it successfully. The only issue is to write the conditions for region 1 and region 2. I don't know how to make openFoam understand x, y and z coordinate in the solver itself so that it can solve it conditionally.


It will be a great help if you guys look into the matter.

Thanks
lightMyCandle is offline   Reply With Quote

Reply

Tags
conditional computation, openfoam, programming, solver development


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
Suppress twoPhaseEulerFoam energy AlmostSurelyRob OpenFOAM Running, Solving & CFD 33 September 25, 2018 18:45
Segmentation fault when using reactingFOAM for Fluids Tommy Floessner OpenFOAM Running, Solving & CFD 4 April 22, 2018 13:30
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
Micro Scale Pore, icoFoam gooya_kabir OpenFOAM Running, Solving & CFD 2 November 2, 2013 14:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


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