CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

problems about surfaceNormalFixedValue

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

Like Tree2Likes
  • 1 Post By gwierink
  • 1 Post By Sherlock_1812

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2009, 01:17
Default problems about surfaceNormalFixedValue
  #1
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
The simpleFoam solver is used. And a problem is met.

The inlet velocity condition is set as follows.
--------------------------------------------------------------------
pump-in
{
type surfaceNormalFixedValue;
value uniform -0.9611;
}
-------------------------------------------------------------------
However, failed. The errors are reported:
.................................................. ............................................
keyword refValue is undefined in dictionary "/home/g2/e090012/OpenFOAM/e090012-1.5/run/tutorials/simpleFoam/stratification/0/U:ump-in"
file: /home/g2/e090012/OpenFOAM/e090012-1.5/run/tutorials/simpleFoam/stratification/0/U:ump-in from line 31 to line 32.
From function dictionary::lookupEntry(const word& keyword) const
in file db/dictionary/dictionary.C at line 213.
FOAM exiting
.................................................. .............................................
Then I revised it as:
-------------------------------------------------------------------
pump-in
{
type surfaceNormalFixedValue;
value -0.9611;
}
-------------------------------------------------------------------
still failed, and the errors are the same.

But the case can successfully run with "fixedValue" type.

Any comments? Thanks in advance.
chiven is offline   Reply With Quote

Old   May 21, 2009, 03:57
Default
  #2
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Hi Jiejin,

Perhaps it is the sign of the value that is the problem. Try
Code:
pump-in      
    {
        type            surfaceNormalFixedValue;
        value           uniform 0.9611;
    }
instead of

Code:
pump-in      
    {
        type            surfaceNormalFixedValue;
        value           uniform -0.9611;
    }
Regards,

Gijsbert
gwierink is offline   Reply With Quote

Old   May 21, 2009, 04:24
Default Thanks for the comments
  #3
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
thank you, Wierink.

from the userguide, there is description like,

"surfaceNormalFixedValue Specifies a vector boundary condition, normal to the patch, by its magnitude; +ve for vectors pointing out of the domain"

thus I use the sign of "-" to mean pointing in of the domain.


anyway, I shall try it and report the results. Thanks.
chiven is offline   Reply With Quote

Old   May 21, 2009, 06:56
Default
  #4
Senior Member
 
Gijsbert Wierink
Join Date: Mar 2009
Posts: 383
Rep Power: 18
gwierink is on a distinguished road
Yes, you are very right, that's what I read as well ... . I tried surfaceNormalFixedValue on a sinpleFoam tutorial and got the same error message: OF complains that the keyword refValue is not defined in 0/U. I simply replaced "value" with "refValue" and it worked! When you write the refValue to be 10, the solver still works, but it draws fluid out of the inlet instead of pumping it in to the domain. So the recipe that should work is:

pump-in
{
type surfaceNormalFixedValue;
refValue uniform -10;
}

I don't know whether this is how it is supposed to be, but it works. Perhaps it's a 1.5 thing?

Regards,

Gijsbert
lth likes this.
gwierink is offline   Reply With Quote

Old   May 21, 2009, 07:14
Default it is OK, thank you
  #5
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
Hi, Wierink, I do following your suggestions, it does work well. It is insteresting. How can you know that? You are a great man!

Thank you very much.
chiven is offline   Reply With Quote

Old   May 21, 2009, 07:45
Default U is a vector
  #6
Member
 
Michael Roth
Join Date: Mar 2009
Location: Guelph, Ontario, Canada
Posts: 50
Rep Power: 17
roth is on a distinguished road
Sort of makes sense though, no? We're setting velocity U so value would expect a vector, hence the need for refValue, a scalar.

Michael
roth is offline   Reply With Quote

Old   May 21, 2009, 08:36
Default Thanks
  #7
Senior Member
 
J. Cai
Join Date: Apr 2009
Posts: 180
Rep Power: 17
chiven is on a distinguished road
hi, Michael, thank you for your tip. Now I understand.It is interesting.
chiven is offline   Reply With Quote

Old   June 5, 2014, 09:52
Default trouble with sporadic velocities
  #8
Senior Member
 
Srivathsan N
Join Date: Jan 2013
Location: India
Posts: 101
Rep Power: 13
Sherlock_1812 is on a distinguished road
Hi all,
This is a really old thread but is the most relevant one to place my question in.

I have a curved patch which is an inlet on which the surfaceNormalFixedValue velocity is imposed. The initial magnitude and direction of the vectors are correct.

The case is a buoyancy driven flow in the domain surrounding this inlet. Timestep - 1e-05. Once the simulation starts the first time step is fine. But at the 3rd time step, there is some backflow into this curved patch at the bottom showing abnormally high velocities (rescaled maximum velocity ~ 1m/s) (Snapshots are attached)

Is there a way that I can provide the surfaceNormalFixedValue + no back flow condition to this curved patch?

Thanks in advance
Attached Images
File Type: jpg T1.jpg (87.7 KB, 97 views)
File Type: jpg T3.jpg (88.0 KB, 82 views)
File Type: jpg T3rescaled.jpg (16.9 KB, 64 views)
C. Okubo likes this.
__________________
Regards,

Srivaths
Sherlock_1812 is offline   Reply With Quote

Old   July 13, 2020, 23:56
Default Problem with velocity patchNormal value
  #9
New Member
 
Russian Federation
Join Date: Apr 2020
Posts: 18
Rep Power: 6
fetc95 is on a distinguished road
Quote:
Originally Posted by Sherlock_1812 View Post
Hi all,
This is a really old thread but is the most relevant one to place my question in.

I have a curved patch which is an inlet on which the surfaceNormalFixedValue velocity is imposed. The initial magnitude and direction of the vectors are correct.

The case is a buoyancy driven flow in the domain surrounding this inlet. Timestep - 1e-05. Once the simulation starts the first time step is fine. But at the 3rd time step, there is some backflow into this curved patch at the bottom showing abnormally high velocities (rescaled maximum velocity ~ 1m/s) (Snapshots are attached)

Is there a way that I can provide the surfaceNormalFixedValue + no back flow condition to this curved patch?

Thanks in advance
Hello. Did you solve this problem? In my case I have a patch at which the surface-normal component of the velocity is to be zero but the solution which I get from openfoam has incorrect behavior of the velocity near this surface and it seems to be like your problem.
fetc95 is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Needed Benchmark Problems for FSI Mechstud Main CFD Forum 4 July 26, 2011 12:13
Help required to solve Hydraulic related problems aero CFX 0 October 30, 2006 11:00
Some problems with Star CD Micha Siemens 0 August 6, 2003 13:55
Using Fluent for Geophysical Problems Hassid Samuel FLUENT 0 February 23, 2001 06:04
Inverse problems Aleksey Alekseev Main CFD Forum 0 May 12, 1999 15:38


All times are GMT -4. The time now is 21:19.