CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Community Contributions (https://www.cfd-online.com/Forums/openfoam-community-contributions/)
-   -   [swak4Foam] can i change BC from wall to patch in groovyBC? (https://www.cfd-online.com/Forums/openfoam-community-contributions/112092-can-i-change-bc-wall-patch-groovybc.html)

immortality January 22, 2013 01:11

can i change BC from wall to patch in groovyBC?
 
groovyBC can set a variable BC.but can i change type of BC by it at specified time domains?

gschaider January 22, 2013 11:39

Quote:

Originally Posted by immortality (Post 403237)
groovyBC can set a variable BC.but can i change type of BC by it at specified time domains?

With "type" you mean the type in polymesh/boundary (wall, patch, etc)? No

Switching form Dirichlet (fixedValue) to Neuman (fixedGradient): yes

immortality January 22, 2013 12:03

yes.i supposed patch in blockMeshDict for both of patch and wall in my groovyBC condition.is it possible that this is the source of printStack error when the boundary should be wall at groovyBC?
clearly questioning does "wall boundary" is set by only (U=U of wall,T:zeroGradient,p:zeroGradient)?
do these conditions give the patch impermeable property like a wall(suppose fluid laminar for not confusing with wallFunctions?
thanks.

gschaider January 23, 2013 08:40

Quote:

Originally Posted by immortality (Post 403354)
yes.i supposed patch in blockMeshDict for both of patch and wall in my groovyBC condition.is it possible that this is the source of printStack error when the boundary should be wall at groovyBC?
clearly questioning does "wall boundary" is set by only (U=U of wall,T:zeroGradient,p:zeroGradient)?
do these conditions give the patch impermeable property like a wall(suppose fluid laminar for not confusing with wallFunctions?
thanks.

"the source of printStack error when ...": are you referring to a posting in another thread ... but only you know which?

For most practical purposes patch and wall behave the same. Only certain BCs/models (turbulence, radiation, heat transfer) behave differently on them

immortality January 23, 2013 09:34

thanks.yes Im searching to find the cause of the error OpenFOAM gives.
I had a thread without answer although is irrelevant but i submit it here hoping to get an answer.why in "hConstThrmo" and "specieThermo" two different dimensions for Cp are commented?(J/kmol.K and J/kg.K)
could you enlighten me?
thanks very much.


All times are GMT -4. The time now is 23:59.