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

Reading Boundary Condition Dictionary

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 21, 2017, 18:17
Default Reading Boundary Condition Dictionary
  #1
New Member
 
Join Date: Nov 2016
Posts: 10
Rep Power: 7
victorious_BIG is on a distinguished road
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!
victorious_BIG is offline   Reply With Quote

Old   May 31, 2018, 12:13
Default
  #2
Member
 
Karelke Yu
Join Date: Dec 2014
Posts: 96
Rep Power: 9
cfdopenfoam is on a distinguished road
Hi, have u finally found a method to do this?

Quote:
Originally Posted by victorious_BIG View Post
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!
cfdopenfoam is offline   Reply With Quote

Old   May 31, 2018, 12:37
Default
  #3
New Member
 
Join Date: Nov 2016
Posts: 10
Rep Power: 7
victorious_BIG is on a distinguished road
Nope! I'm just reading a duplicated value from the transport dictionary (non-elegant but it works).
victorious_BIG 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
Basic Nozzle-Expander Design karmavatar CFX 20 March 20, 2016 08:44
[Commercial meshers] fluentMeshToFoam multidomain mesh conversion problem Attesz OpenFOAM Meshing & Mesh Conversion 12 May 2, 2013 10:52
Problem in running ICEM grid in Openfoam Tarak OpenFOAM 6 September 9, 2011 17:51
External Radiation Boundary Condition for Grid Interface CFD XUE FLUENT 0 July 9, 2010 02:53
Problem with rhoSimpleFoam matteo_gautero OpenFOAM Running, Solving & CFD 0 February 28, 2008 06:51


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