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/)
-   -   Burgerbs equation non constant Boundary Conditions Initial Conditions (http://www.cfd-online.com/Forums/openfoam-solving/58503-burgerbs-equation-non-constant-boundary-conditions-initial-conditions.html)

arkangel October 2, 2008 11:02

HI I want to simulate the
 
HI

I want to simulate the 2D Burger's equation (modified a little) on a domain ]0,1[ x]0,1[ , all seems to be simple.

But I have the problem of telling the solver I want non-uniform boundary conditions (BC) and specify Initial conditions (IC) on the domain.

For example:

BC:
U(0,y)=U(1,y)= C*y ; V(x,0)=V(x,1)=C*x
(so The U vel will vary linearly along the y axis while the V vel will vary linearly along the x axis)

IC:
For the initial condition t=0. I want to tell the solver that the value of U and V (x-vel and y-vel) are function of the position
U(x,y) =sin(pi*x)*cos(pi*y) and V(x,y)=f(x,y) for t=0.

Can you tell me how to do it in openfoam?

thanxs http://www.cfd-online.com/OpenFOAM_D...part/happy.gif

mattijs October 2, 2008 14:48

BC: timeVaryingMappedFixedValu
 
BC: timeVaryingMappedFixedValue. Reads table of values. Interpolates in space (and optionally time). See the pitzDailyExptInlet tutorial

IC: Search on the Wiki for Bernhard's funkySetFields.


All times are GMT -4. The time now is 20:18.