|
[Sponsors] |
April 26, 2011, 05:02 |
complicated boundary condition
|
#1 |
New Member
David Eržen
Join Date: Jan 2011
Posts: 3
Rep Power: 15 |
Hi!
I would like to create a velocity boundary condition (on a wing profile) with following properties: - tangential slip - normal velocity calculated from a formula that contains two imported, precalculated velocity fields. I have tried using fixedNormalSlip bc, but I had problems with imported velocity fields (volVectorField). I couldn't match the field types. Does anybody have similar bc already implemented? David |
|
April 26, 2011, 10:21 |
|
#2 |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
Although I don't have much experience with your application, normally the implementation of complicated boundary conditions are made much easier using groovyBC (http://openfoamwiki.net/index.php/Contrib_groovyBC). This is like an add on module that you have to install.
|
|
May 4, 2011, 06:38 |
|
#3 |
New Member
David Eržen
Join Date: Jan 2011
Posts: 3
Rep Power: 15 |
Excellent!!!!
that's what i need thank you very very much ehm, is ti possible to access also scalars from this groovyBC, not just scalar (or other) fields? |
|
May 4, 2011, 09:53 |
|
#4 | |
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
Quote:
Check out this thread: http://www.cfd-online.com/Forums/ope...tml#post290824 As a workaround, I set up a dummy volScalarField filled with all 0 values except for the boundary which I set to 1 or 0 in my solver depending on whether I want a gradient or fixedvalue BC. Then, in groovyBC, you can just treat that volScalarField like a scalar. This is a bit of a workaround though and wouldn't work well if you want to read in a lot of scalar values. If Bernhard is reading this: +1 for this feature (when you have some time ) |
||
May 5, 2011, 13:23 |
|
#5 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
With the release that I pushed to the SVN a couple of weeks ago (never properly announced it I'm afraid) I introduced "stored variables" with which you can implement stuff like "if the maximum temperature is above 342 then this BC should BECOME a zeroGradient and STAY that way even if the temperature falls" This and other features of swak4Foam I'll explain during my talk at the Workshop at Penn State next month. I hear that they still accept registrations Accessing "a scalar variable of the solver" from groovyBC would only be possible if it was exposed via the objectRegistry (and this is currently not implemented). Accessing a variable that is only defined as "scalar switchBC=0;" in the code is technically not possible About feature wishes: I may sound like a broken record, but I tend to take these more seriously if they pop up in the BugReporting-Mantis of swak4foam (see the Wiki-page) Bernhard |
||
May 5, 2011, 13:43 |
|
#6 | |||
Senior Member
Ben K
Join Date: Feb 2010
Location: Ottawa, Canada
Posts: 140
Rep Power: 19 |
Thanks Berhard,
Quote:
Code:
fractionExpression "(flag > 0) ? 0 : 1" Quote:
Quote:
|
||||
Tags |
boundary condition, field types, fixednormalslip, imported fields |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Domain Imbalance | HMR | CFX | 5 | October 10, 2016 06:57 |
Can anyone give me some hint on how to make traction free boundary condition? | poplar | OpenFOAM | 3 | January 14, 2015 03:37 |
Boundary Conditions | Thomas P. Abraham | Main CFD Forum | 20 | July 7, 2013 06:05 |
Setting outlet Pressure boundary condition using CAFFA code | Mukund Pondkule | Main CFD Forum | 0 | March 16, 2011 04:23 |
How to set boundary condition in Fluent for the fo | Peiyong | FLUENT | 1 | November 10, 2006 12:44 |