complicated boundary condition
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 |
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.
|
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? |
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 ;) ) |
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 |
Thanks Berhard,
Quote:
Code:
fractionExpression "(flag > 0) ? 0 : 1" Quote:
Quote:
|
All times are GMT -4. The time now is 11:05. |