|
[Sponsors] |
September 27, 2013, 14:20 |
timeVaryingMappedFixedValue BC
|
#1 |
New Member
Marcelo
Join Date: May 2013
Posts: 10
Rep Power: 12 |
Hi all,
I trying to simulating a simple geometry in 2D, and my boundary conditions are defined pressure in the inlet and outlet and velocity evaluated by this pressure difference. My problem is that I have to grow the difference of pressure very slow, because if I put a big difference of pressure with a initial field of velocity defined as zero, it does not converge. So, what I am doing is to set a small difference of pressure and as the flow is solved I am changing the difference of pressure. Anyway, what I am trying to do to avoid this work setting a "ramp" in the difference of pressure, using the BC timeVaryingMappedFixedValue. The problem is that it is not working. I will put my BC here and I appreciate if you can help me on that! So, my inlet and outlet files are: for velocity: inlet { type pressureInletVelocity; value uniform (0 0 0); } outlet { type zeroGradient; } for pressure: { inlet { type timeVaryingMappedFixedValue; fileName "ramp.dat"; outOfBounds clamp; } outlet { type fixedValue; value uniform 0; My ramp file: ( (0.0, 0.001) (0.1, 0.010) (1.0, 0.100) ) The error message is: -> FOAM FATAL IO ERROR: keyword setAverage is undefined in dictionary "/home/marcelo/Desktop/opt/openfoam221/tutorials/incompressible/icoFoam/Projeto/bockmesh/APISeal2D52/0/p.boundaryField.inlet" file: /home/marcelo/Desktop/opt/openfoam221/tutorials/incompressible/icoFoam/Projeto/bockmesh/APISeal2D52/0/p.boundaryField.inlet from line 25 to line 27. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 402. FOAM exiting Thank you very much, Regards, Marcelo |
|
|
|