|
[Sponsors] |
how to set the value of fixed boundary condition in the solver |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 7, 2020, 07:19 |
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 |
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? |
|
February 7, 2020, 13:18 |
|
#2 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
Is there any chance for you to provide further details, please? It is a bit vague description of the problem, IMHO.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 11, 2020, 11:07 |
|
#3 |
New Member
Farhad
Join Date: Apr 2012
Posts: 3
Rep Power: 0 |
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? |
|
February 11, 2020, 13:15 |
|
#4 |
Senior Member
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 932
Rep Power: 12 |
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.
__________________
The OpenFOAM community is the biggest contributor to OpenFOAM: User guide/Wiki-1/Wiki-2/Code guide/Code Wiki/Journal Nilsson/Guerrero/Holzinger/Holzmann/Nagy/Santos/Nozaki/Jasak/Primer Governance Bugs/Features: OpenFOAM (ESI-OpenCFD-Trademark) Bugs/Features: FOAM-Extend (Wikki-FSB) Bugs: OpenFOAM.org How to create a MWE New: Forkable OpenFOAM mirror |
|
February 18, 2020, 06:28 |
|
#5 |
New Member
Farhad
Join Date: Apr 2012
Posts: 3
Rep Power: 0 |
After replacing the value at the initialization step, it should remain constant throughout the whole simulation.
|
|
|
|
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 |