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

Difficulty running a user compiled boundary condition in parallel

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2021, 01:34
Default Difficulty running a user compiled boundary condition in parallel
  #1
Member
 
Jnana Bhaskar Rao
Join Date: Mar 2020
Posts: 46
Rep Power: 6
jnanabrao is on a distinguished road
Hello Foamers,


I have a problem running my user implemented boundary condition in parallel. The BC reads a field 'R' from constant folder. This filed is not required by the solver and hence needs to be added by the BC object. The patch data of this field is saved as private data member of the BC object.



The boundary condition works in series. In parallel, I face some problems:


1)When using decomposePar, the field cannot be read correctly because it is not decomposed. For the time being, I got around this problem by setting a different BC when running decomposePar and then updating it to my BC as that update is transmitted to all the processors.


2) Even with the above work around there is a second problem. My boundary patch (say "INLET") is entirely present on one processor while the rest of the processors have a dummy patch "INLET" of 0 size. On trying to create the 'R' field for these patches, I get a bad array length error as the 'R' data member is a field and cannot be initialized with 0 size.



3) There are some data members that must be common across all processor boundary patches. However, as far as I can understand, the BC object is being instantiated completely independently in all the processors. Is there a way to make some data members global across all the patch instances?


Any help is highly appreciated.
Thanks,
JBR
jnanabrao is offline   Reply With Quote

Reply


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 22:45
Centrifugal fan-reverse flow in outlet lesds to a mass in flow field xiexing CFX 3 March 29, 2017 10:00
Problem in setting Boundary Condition Madhatter92 CFX 12 January 12, 2016 04:39
Time dependant pressure boundary condition yosuke1984 OpenFOAM Verification & Validation 3 May 6, 2015 06:16
Error finding variable "THERMX" sunilpatil CFX 8 April 26, 2013 07:00


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