|
[Sponsors] |
[swak4Foam] settings a gradient on boundary using groovyBC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 10, 2011, 10:36 |
settings a gradient on boundary using groovyBC
|
#1 |
Member
Join Date: May 2009
Posts: 54
Rep Power: 17 |
Hello,
I am experimenting with groovyBC and can successfully use the valueExpression on a patch. When I try to set a gradientExpression for pressure, such as: Code:
inlet { type groovyBC; //valueExpression "100"; gradientExpression "100"; } gradientExpression "vector(100,0,0)&normal()" but that gives the same result. This is a simple 2D case with an oscillatingFixedValue velocity inlet ran using pisoFoam. Am I interpreting the gradientExpression patch parameter wrong? |
|
November 10, 2011, 12:11 |
|
#2 |
Senior Member
Anton Kidess
Join Date: May 2009
Location: Germany
Posts: 1,377
Rep Power: 30 |
From the documentation:
Code:
* fractionExpression Determines whether the face is Dirichlet (1) or Neumann (0). Defaults to 1 Last edited by akidess; November 10, 2011 at 12:11. Reason: formatting |
|
November 10, 2011, 12:14 |
|
#3 |
Member
Join Date: May 2009
Posts: 54
Rep Power: 17 |
Hi Anton,
I have in fact tested the fractionExpression as well, but setting it to 0 did not help. |
|
November 10, 2011, 20:37 |
|
#4 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
|
||
May 3, 2012, 11:05 |
|
#5 |
Member
Albert Tong
Join Date: Dec 2010
Location: Perth, WA, Australia
Posts: 76
Blog Entries: 1
Rep Power: 16 |
Hi All,
I would like to set up a gradient B.C., ∂p/∂x = cos (2*pi*t) . Is there a way to do this with groovyBC or openfoam official tools? Cheers.
__________________
Kind regards, Albert |
|
May 3, 2012, 12:24 |
|
#6 | |
Assistant Moderator
Bernhard Gschaider
Join Date: Mar 2009
Posts: 4,225
Rep Power: 51 |
Quote:
valueExpression "0"; // this doesn't matter fractionExpression "0"; // no value, all gradient gradientExpression "sin(2*pi*time())"; Official tools: you can do something similar with some C++-programming with the codedMixed-BC I guess |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Radiation in semi-transparent media with surface-to-surface model? | mpeppels | CFX | 11 | August 22, 2019 08:30 |
question regarding LES of pipe flow - pimpleFoam | Dan1788 | OpenFOAM Running, Solving & CFD | 37 | December 26, 2017 15:42 |
Multiphase flow - incorrect velocity on inlet | Mike_Tom | CFX | 6 | September 29, 2016 02:27 |
Difficulty In Setting Boundary Conditions | Moinul Haque | CFX | 4 | November 25, 2014 18:30 |
Question about heat transfer coefficient setting for CFX | Anna Tian | CFX | 1 | June 16, 2013 07:28 |