CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

timeVaryingMappedFixedValue BC

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   September 27, 2013, 14:20
Default timeVaryingMappedFixedValue BC
  #1
New Member
 
Marcelo
Join Date: May 2013
Posts: 10
Rep Power: 5
marcelorl is on a distinguished road
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
marcelorl is offline   Reply With Quote

Old   September 28, 2013, 08:50
Default Tutorial/material
  #2
New Member
 
Marcelo
Join Date: May 2013
Posts: 10
Rep Power: 5
marcelorl is on a distinguished road
Do you have any material/tutorial reference about this boundary condition?

timeVaryingMappedFixedValue

Thank you very much

Regards

Marcelo
marcelorl is offline   Reply With Quote

Old   October 4, 2013, 13:11
Default
  #3
Member
 
Jace
Join Date: Oct 2012
Posts: 77
Rep Power: 6
zhengzh5 is on a distinguished road
Quote:
Originally Posted by marcelorl View Post
Do you have any material/tutorial reference about this boundary condition?

timeVaryingMappedFixedValue

Thank you very much

Regards

Marcelo
i think you're looking for timeVaryingUniformFixedValue boundary condition and not the timeVaryingMappedFixedValue. And I don't have any reference on hand, there should be some lying around the forum if you do some digging.
zhengzh5 is offline   Reply With Quote

Old   January 2, 2014, 02:17
Default
  #4
Member
 
vishal
Join Date: Mar 2013
Posts: 55
Rep Power: 5
vishal_s is on a distinguished road
Hi Marcelo, I am also facing the same problem. I tried out both timeVaryingMappedFixedValue and timeVaryingUniformFixedvalue but did not worked. Did you figured out how to solve the problem?
vishal_s is offline   Reply With Quote

Old   January 2, 2014, 05:50
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 164
Rep Power: 4
Antimony is on a distinguished road
Hi Marcelo,

Have you looked at the pitzDailyExptInlet under simpleFoam? Based on the error message that you have, it seems like you have missed out defining the "setAverage" value in the file indicated in the error. Perhaps the tutorial might help you with it?

Regards,

Antimony
Antimony is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 16:29.