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

Force use of boundary conditions

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 10, 2012, 08:57
Default Force use of boundary conditions
  #1
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
I have a coupled solver that ensures the use of a mixed boundary condition at a specific patch as:
Code:
field().boundaryField()[bPatchID()].type()
              == mixedFvPatchField<scalar>::typeName
This works really nicely if I just want to allow strictly a mixed boundary condition, but it shuts out derived boundary conditions such as groovyBC. Anyone know how to check for the base class?
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess is offline   Reply With Quote

Old   October 10, 2012, 09:25
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 29
akidess will become famous soon enough
I think I found my answer: isA<mixedFvPatchScalarField>(field().boundaryField ()[bPatchID()])
__________________
*On twitter @akidTwit
*Spend as much time formulating your questions as you expect people to spend on their answer.
akidess 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
Impinging Jet Boundary Conditions Anindya Main CFD Forum 25 February 27, 2016 13:58
non reflective boundary conditions for incompresible flow Pascal_doran OpenFOAM Programming & Development 16 August 25, 2015 06:35
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 18:15
Force can not converge colopolo CFX 13 October 4, 2011 23:03
Fluent accuracy and boundary conditions Paolo Lampitella FLUENT 0 June 12, 2008 07:25


All times are GMT -4. The time now is 22:10.