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] Time varying non uniform velocity gradient, groovyBC? (https://www.cfd-online.com/Forums/openfoam-community-contributions/108690-time-varying-non-uniform-velocity-gradient-groovybc.html)

ic3wall October 30, 2012 12:38

Time varying non uniform velocity gradient, groovyBC?
 
Hi all,

As the title says, I have to impose a non uniform velocity gradient on a given patch that will vary for each iteration based on another variable. I searched a bit to find a similar boundary condition that I could modify to achieve what I want ... but didn't find anything interesting except "fixedFluxPressureFvPatchScalarField" which is still far from what I want.

I also read a bit about groovyBC (skaw4foam), but I'm still not convinced that it would be the best choice.

I'm certainly not the first one dealing with such a boundary condition..

What would you suggest ?

gschaider November 14, 2012 17:26

Quote:

Originally Posted by ic3wall (Post 389326)
Hi all,

As the title says, I have to impose a non uniform velocity gradient on a given patch that will vary for each iteration based on another variable. I searched a bit to find a similar boundary condition that I could modify to achieve what I want ... but didn't find anything interesting except "fixedFluxPressureFvPatchScalarField" which is still far from what I want.

I also read a bit about groovyBC (skaw4foam), but I'm still not convinced that it would be the best choice.

I'm certainly not the first one dealing with such a boundary condition..

What would you suggest ?

Define "best choice"

I think that you either program such a boundary condition yourself or use groovyBC. An intermediate solution would be codedFixedGradient, but last time I checked there was no such BC (and using other fields is way easier in groovyBC ... I think)


All times are GMT -4. The time now is 10:25.