|
[Sponsors] |
September 21, 2017, 19:17 |
Reading Boundary Condition Dictionary
|
#1 |
New Member
Join Date: Nov 2016
Posts: 10
Rep Power: 9 |
Hi,
I am doing some co-processing in my main solver loop and would like to access the user-inputed value in the boundary condition. For example, I have a custom boundary condition with a sub-dictionary that looks like: outlet { type customType; targetConc 0.4; value uniform 0.0; } I want to access the value of "targetConc" in my main cover loop (not in the BC) so that I can use it as input for other quantities I am trying to calculate. I know how to access the fvPatchField at the outlet, but unfortunately, the scalar I defined in my BC is private data and there is no member function to access it. So, I want to re-read the value of that scalar into the top solver from the original boundary condition dictionary. Summarizing: How do I access the boundary condition dictionary from within the main solver? Thanks! |
|
May 31, 2018, 13:13 |
|
#2 | |
Member
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 11 |
Hi, have u finally found a method to do this?
Quote:
|
||
May 31, 2018, 13:37 |
|
#3 |
New Member
Join Date: Nov 2016
Posts: 10
Rep Power: 9 |
Nope! I'm just reading a duplicated value from the transport dictionary (non-elegant but it works).
|
|
Thread Tools | Search this Thread |
Display Modes | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Basic Nozzle-Expander Design | karmavatar | CFX | 20 | March 20, 2016 09:44 |
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem | Attesz | OpenFOAM Meshing & Mesh Conversion | 12 | May 2, 2013 11:52 |
Problem in running ICEM grid in Openfoam | Tarak | OpenFOAM | 6 | September 9, 2011 18:51 |
External Radiation Boundary Condition for Grid Interface | CFD XUE | FLUENT | 0 | July 9, 2010 03:53 |
Problem with rhoSimpleFoam | matteo_gautero | OpenFOAM Running, Solving & CFD | 0 | February 28, 2008 07:51 |