Hi Alex,
Thank you for your explanation. I have been trying (desperately) to code a mixed boundary condition using groovyBC and have not had any success with it. I was hoping to do it wuth mixed boundary condition. Could you take a look at my post and suggest any ideas that you have about implementing a mixed BC on a vector field. http://www.cfd-online.com/Forums/ope...groovy-bc.html Thanks again for the help. Saurabh |
Implementing groovyBC for vectors
Quote:
Hi I am trying to implement the groovyBC for a vector field instead of a scalar field. When I put in the fractionExpression term in my code it starts to give me a weird solution. Could you explain the implementation of the fractionExpression term for vector? P.S. I would specifically like to know If groovyBC turns the scalar value of fractionExperssion in to a vector on implementation? Does fraction expression affect only the diagonal coefficients of the final coefficient matrix or the non-diagonal coefficients as well? Thank you. Saurabh |
Summary
Quote:
Firstly, try to understand the treatment given in the "Basic convection". Then, compare the terms of Eq. (5) to the terms of the equation given here. After this, relate these terms with the Usage of the mixed BC. So, I think this is the answer: Code:
type mixed; |
Hi Thiago
You could use the Swak4FOAM and groovyBC library for accessing mesh properties while using mixed Boundary conditions. f <valuefraction > could be mesh dependent. Swak4FOAM library has some functions that allow one to access mesh properties while setting boundary conditions. You could also use refCast to extract mesh based values and the update the BC later in the code. Hope it helps. Saurabh |
Hi guys,
I just want to inform you that if you want to implement something like that, you can check out my laserConvectionBC and the documentation. There you will find the derivation of the equation and in the source code you can follow how to implement all the stuff. More information about that can be found here: https://bitbucket.org/shor-ty/laserconvectionbc |
Hello,
I am trying to apply mixed boundary condition for volScalarField H2O to simulate absorption based on partition coefficients at a wall. I am trying to apply the boundary condition attached in the image below.Attachment 68209 Inorder to implement this I used the following BC: Code:
BOTTOM Is there a way to implement this type of groovyBC? Thank you Nilay |
All times are GMT -4. The time now is 06:03. |