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

Force use of boundary conditions

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

Reply
 
LinkBack Thread Tools Display Modes
Old   October 10, 2012, 07:57
Default Force use of boundary conditions
  #1
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess is offline   Reply With Quote

Old   October 10, 2012, 08:25
Default
  #2
Senior Member
 
akidess's Avatar
 
Anton Kidess
Join Date: May 2009
Location: Delft, Netherlands
Posts: 919
Rep Power: 17
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.
*Help define the OpenFOAM stackexchange Q&A site: http://area51.stackexchange.com/prop...oam-technology
akidess 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
non reflective boundary conditions for incompresible flow Pascal_doran OpenFOAM Programming & Development 15 August 7, 2014 05:55
Impinging Jet Boundary Conditions Anindya Main CFD Forum 24 January 11, 2012 14:40
CFX13 Post Periodic interface EtaEta CFX 7 December 8, 2011 18:15
Force can not converge colopolo CFX 13 October 4, 2011 22:03
Fluent accuracy and boundary conditions Paolo Lampitella FLUENT 0 June 12, 2008 06:25


All times are GMT -4. The time now is 09:08.