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 Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 7, 2020, 08: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, 14:18
Default
  #2
HPE
Senior Member
 
Herpes Free Engineer
Join Date: Sep 2019
Posts: 298
Rep Power: 3
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.
__________________
Kind regards,
HPE

The OpenFOAM community is the biggest contributor to OpenFOAM; not person A or B. Let's report bugs or issue feature requests in GitLab-OpenFOAM.

Please `design` your questions well. Such effort always pays off well for inquirers and `helpmate`s:
How to create a Minimal, Reproducible Example,
How to give enough info to get help.
HPE is offline   Reply With Quote

Old   February 11, 2020, 12: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, 14:15
Default
  #4
HPE
Senior Member
 
Herpes Free Engineer
Join Date: Sep 2019
Posts: 298
Rep Power: 3
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.
__________________
Kind regards,
HPE

The OpenFOAM community is the biggest contributor to OpenFOAM; not person A or B. Let's report bugs or issue feature requests in GitLab-OpenFOAM.

Please `design` your questions well. Such effort always pays off well for inquirers and `helpmate`s:
How to create a Minimal, Reproducible Example,
How to give enough info to get help.
HPE is offline   Reply With Quote

Old   February 18, 2020, 07: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

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 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 23:45
Difficulty In Setting Boundary Conditions Moinul Haque CFX 4 November 25, 2014 18:30
CFX fails to calculate a diffuser pipe flow shenying0710 CFX 7 March 26, 2013 05:13
How to set the Heat Flux boundary condition at Outlet creddy_trddc CFX 3 September 21, 2011 08:44
how to set up a wall boundary condition according to calculated wall shear stress? gameoverli OpenFOAM Pre-Processing 1 May 21, 2009 09:28


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