CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Time varying non uniform velocity gradient, groovyBC? (http://www.cfd-online.com/Forums/openfoam-programming-development/108690-time-varying-non-uniform-velocity-gradient-groovybc.html)

ic3wall October 30, 2012 14: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 18: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 11:10.