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

how to set the value of fixed boundary condition in the solver

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2020, 07:19
Default how to set the value of fixed boundary condition in the solver
  #1
New Member
 
Farhad
Join Date: Apr 2012
Posts: 3
Rep Power: 0
platypuss is on a distinguished road
Hi everyone,

I used the third party software in my solver. In my code first I create all fields, then I use the other code that will give me the fields and boundary conditions value (here fix value boundary condition I meant). I would like to update the value of boundary conditions before the OpenFOAM main loop. Also, it should use the new value during the whole calculation.


Could you please tell me how I could solve this problem?
platypuss is offline   Reply With Quote

Old   February 7, 2020, 13:18
Default
  #2
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Is there any chance for you to provide further details, please? It is a bit vague description of the problem, IMHO.
HPE is offline   Reply With Quote

Old   February 11, 2020, 11:07
Default
  #3
New Member
 
Farhad
Join Date: Apr 2012
Posts: 3
Rep Power: 0
platypuss is on a distinguished road
Dear HPE,
I solve a scalar transport equation in my solver to find the distribution of species concentration. The concentration fields are created and initialized using constant value boundary condition for the inlet as followed:
...
inlet
{
type fixedValue;
value uniform 5;
}
...
before the main loop, I will calculate a more precise value for concentration from another package which is coupled with OpenFOAM (let say the new value is 5.3). Now I would like to set the boundary condition to the value that I receive from the reaction package (here 5.3). I can do it manually if the cases are few, which are not!



Any idea how could I solve this problem?
platypuss is offline   Reply With Quote

Old   February 11, 2020, 13:15
Default
  #4
HPE
Senior Member
 
HPE's Avatar
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12
HPE is on a distinguished road
Is this value time-varying or constant throughout a single simulation? Or you have many simulations with different constant values?

OpenFOAM provides many boundary conditions for such cases, so I'm pretty sure you can do as such in OF.
HPE is offline   Reply With Quote

Old   February 18, 2020, 06:28
Default
  #5
New Member
 
Farhad
Join Date: Apr 2012
Posts: 3
Rep Power: 0
platypuss is on a distinguished road
After replacing the value at the initialization step, it should remain constant throughout the whole simulation.
platypuss 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
Constant mass flow rate boundary condition sahm OpenFOAM 0 June 20, 2018 22:45
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 17:30
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 04:13
How to set the Heat Flux boundary condition at Outlet creddy_trddc CFX 3 September 21, 2011 07:44
how to set up a wall boundary condition according to calculated wall shear stress? gameoverli OpenFOAM Pre-Processing 1 May 21, 2009 08:28


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