CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (http://www.cfd-online.com/Forums/openfoam-solving/)
-   -   fixed value function (http://www.cfd-online.com/Forums/openfoam-solving/105416-fixed-value-function.html)

NewProgramer July 30, 2012 13:57

fixed value function
 
Hi, I'm very new to the programming language in general and to openfoam even more so. I'm trying to to set up a fixed value boundary condition for the inlet where the value is a function of position. For the purpose of generality, the flow is in the -y dirrection and the velocity function is f(x). Thank you for your help *bows head*

gschaider August 6, 2012 17:59

Quote:

Originally Posted by NewProgramer (Post 374391)
Hi, I'm very new to the programming language in general and to openfoam even more so. I'm trying to to set up a fixed value boundary condition for the inlet where the value is a function of position. For the purpose of generality, the flow is in the -y dirrection and the velocity function is f(x). Thank you for your help *bows head*

If your main intention is to learn C++ go ahead with this. If you 'only' want to solve a case with a special boundary condition use groovyBC. Or use codedFixedValue as a compromise


All times are GMT -4. The time now is 08:40.