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

How to add new fvPatchFields to directMappedWall?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 15, 2011, 14:12
Default How to add new fvPatchFields to directMappedWall?
  #1
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
Hi,

I would like to define a new temperature boundary condition for patches between regions in multi-region solvers.

I have set the target in Make/files as $FOAM_USER_LIBBIN/libuserBCs. and compiled the code. I got the target from the OF's advanced training session manual.

But OpenFOAM complains that the new boundary is not a known patchField type for patch type directMappedWall.

I tried to learn about directMappedWall by looking at compilation instructions for MarshakRadiation, which is one of the allowed fvPatchFields for directMappedWall. It's target is $FOAM_LIBBIN/libradiationModels. I don't see how that is related to directMappedWall.

Thanks,

Mirko
mirko is offline   Reply With Quote

Old   September 16, 2011, 10:46
Default
  #2
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
I also tried registering the libuserBCs.so in my ./system/controlDict, but that did not help.

Mirko
mirko is offline   Reply With Quote

Old   September 16, 2011, 11:04
Default
  #3
Senior Member
 
David Gaden
Join Date: Apr 2009
Location: Winnipeg, Canada
Posts: 397
Rep Power: 12
marupio is on a distinguished road
I'm not clear on what is happening. Did your custom boundary condition compile properly? (If not, what was the error?) Then when you ran your solver, what error did you get? The one where it complains it is a generic boundary condition and value() needs to be defined or something like that?
__________________
~~~
Follow me on twitter @DavidGaden
marupio is offline   Reply With Quote

Old   September 16, 2011, 13:01
Default
  #4
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
Quote:
Originally Posted by marupio View Post
I'm not clear on what is happening. Did your custom boundary condition compile properly? (If not, what was the error?) Then when you ran your solver, what error did you get? The one where it complains it is a generic boundary condition and value() needs to be defined or something like that?
The custom BC solidTemperature compiled properly. When I run the OpenFOAM, I get:
Code:
--> FOAM FATAL IO ERROR: 
Unknown patchField type solidTemperature for patch type directMappedWall

Valid patchField types are :

86
(
MarshakRadiation
MarshakRadiationFixedT
advective
alphaSgsJayatillekeWallFunction
alphaSgsWallFunction
...
Thanks,

Mirko
mirko is offline   Reply With Quote

Old   September 16, 2011, 14:17
Default
  #5
Senior Member
 
Mirko Vukovic
Join Date: Mar 2009
Posts: 159
Rep Power: 8
mirko is on a distinguished road
I found my error. I did not correctly rename all occurances of class names in my files. OpenFOAM is not finding my boundary condition.

Mirko
mirko is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to add a source term (body force) to icoFoam? chris Liu OpenFOAM Programming & Development 4 October 27, 2014 16:38
solidWallMixedTemperatureCoupled and directMappedWall mirko OpenFOAM Running, Solving & CFD 10 August 22, 2014 20:23
Add a layer of cells, UDF, dynamic mesh or ...? Modisa FLUENT 0 March 17, 2007 12:59
Add Measure Markings or Coordinates to the Contour Colin FLUENT 4 August 25, 2004 09:54
How to add fire source in STAR-CD?? raymond CD-adapco 2 February 22, 2002 14:49


All times are GMT -4. The time now is 17:52.