CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

Registering a dictionary to the objectRegistry from within a boundary condition

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 13, 2017, 08:30
Default Registering a dictionary to the objectRegistry from within a boundary condition
  #1
New Member
 
Hendrik
Join Date: Jan 2017
Posts: 6
Rep Power: 9
Zymorui is on a distinguished road
Dear Foamers,
I've been working on the implementation of a translating reference frame velocity boundary condition (BC) to minimize the domain size in a rising bubble simulation.

The bubble position and velocity is calculated in an adapted interFoam solver. To access the bubble velocity from within my custom BC I used a custom IOdictionary called velocityDict (Which is declared in createFields.H of the interFoam solver)

Code:
IOdictionary velocityDict
(
IOobject
(
"velocityDict",
runTime.timeName(),
mesh,
IOobject::MUST_READ,
IOobject::AUTO_WRITE
)
);
to look it up from the objectRegistry. (Suggested in this post objectRegistry::lookupObject<scalar>)

This works fine for a single core run. Unfortunately when I try to decompose the case, the decomposition fails because the dicionary is not known to decomposePar and reconstructPar.

Now my question:
Is there a possibilty to register this dictionary in the BC?
Does anyboy have another suggestion how to get the bubble velocity from the main solver into the BC?
Zymorui is offline   Reply With Quote

Reply

Tags
boundary condition, objectregistry


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
sliding mesh problem in CFX Saima CFX 46 September 11, 2021 07:38
Dictionary update from a boundary condition: is it possible? JoeFriend OpenFOAM Programming & Development 5 August 16, 2017 12:34
Wrong flow in ratating domain problem Sanyo CFX 17 August 15, 2015 06:20
Radiation interface hinca CFX 15 January 26, 2014 17:11
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


All times are GMT -4. The time now is 20:49.