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

controlDict dynamic functions for chtMultiRegionFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2017, 14:22
Question controlDict dynamic functions for chtMultiRegionFoam
  #1
New Member
 
Mahdi Nabil
Join Date: Sep 2015
Posts: 9
Rep Power: 10
Mhmnabil is on a distinguished road
Hi All,

I am running a chtMultiRegionFoam case with two regions (solid and fluid). It is actually a microchannel section with considering the surrounding walls. I am trying to modify dynamic function objects in the controlDict to actually add some functions to calculate some parameters on patches of both fluid and solid region.

I don't know how should I call a patch in a way that openfoam finds out which region i am talking about. When I was trying to do it as usual without referring to a region name:

const label InletPatchID = bMesh.findPatchID("Inlet");

It does not work. The error is:

4] --> FOAM FATAL ERROR:
[4]
request for objectRegistry region0 from objectRegistry ShortCase_1.1_1000_20_6FineCHT2processor4 failed
available objects of type objectRegistry are

2
(
fluid
solid
)


Does anyone know how I can call a specific region when I write my functions in controlDict?

Regards,
Mahdi
Mhmnabil is offline   Reply With Quote

Reply

Tags
chtmultiregionfoam, controldict, functionobjects, region patch, regions


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
writeFormat and timeFormat in functions subDict in controlDict cfdopenfoam OpenFOAM Running, Solving & CFD 3 March 5, 2021 08:29
How to solve the boundary layer without wall functions? WhiteW OpenFOAM Running, Solving & CFD 4 January 20, 2020 04:55
How to use dynSmagorinsky model correctly ? panda60 OpenFOAM 121 July 14, 2016 13:09
dynamic mesh or dynamic grid adaptation?? IndrajitW FLUENT 3 May 23, 2013 03:38
N-S equations:divergence free functions? D. Puigjaner Main CFD Forum 1 July 27, 2000 12:43


All times are GMT -4. The time now is 14:07.