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

flowRateInletVelocity

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

Like Tree1Likes
  • 1 Post By samiam1000

Reply
 
LinkBack Thread Tools Display Modes
Old   February 29, 2012, 10:58
Default flowRateInletVelocity
  #1
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear All,

I am trying to use the flowRateInletVelocity BC. There is something that I can not understand: what does the `value' field mean?

The code looks like this:
Code:
inlet
{
type        flowRateInletVelocity;
flowRate    0.2;        // Volumetric/mass flow rate [m3/s or kg/s]
value       uniform (0 0 0); // placeholder
}
And what about the value (0 0 0)? What does placeholder stand for?

Thanks,

Samuele
koooje likes this.
samiam1000 is offline   Reply With Quote

Old   March 1, 2012, 03:27
Default
  #2
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
Quote:
Originally Posted by samiam1000 View Post
Dear All,

I am trying to use the flowRateInletVelocity BC. There is something that I can not understand: what does the `value' field mean?

The code looks like this:
Code:
inlet
{
type        flowRateInletVelocity;
flowRate    0.2;        // Volumetric/mass flow rate [m3/s or kg/s]
value       uniform (0 0 0); // placeholder
}
And what about the value (0 0 0)? What does placeholder stand for?

Thanks,

Samuele
The value field is a part of every boundary condition, since they derive from the same basic boundary condition. placeholder means just that. you need it in order for OF to use the boundary condition, but it doesn't really matter what you set it to.
__________________
~roman
romant is offline   Reply With Quote

Old   March 1, 2012, 03:42
Default
  #3
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Thanks for ansering.

I have a doubt: isn't that right that those values are the component of the u vector that is used if we have a revers-flux through that surface?

Thanks a lot,

Samuele
samiam1000 is offline   Reply With Quote

Old   March 1, 2012, 03:46
Default
  #4
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
Quote:
Originally Posted by samiam1000 View Post
Thanks for ansering.

I have a doubt: isn't that right that those values are the component of the u vector that is used if we have a revers-flux through that surface?

Thanks a lot,

Samuele

In the source code it doesn't say anything about that and it gives that the flux is always normal and inwards from the patch.

Code:
Description
    Describes a volumetric/mass flow normal vector boundary condition by its
    magnitude as an integral over its area.

    The basis of the patch (volumetric or mass) is determined by the
    dimensions of the flux, phi.
    The current density is used to correct the velocity when applying the
    mass basis.

    Example of the boundary condition specification:
    \verbatim
    inlet
    {
        type        flowRateInletVelocity;
        flowRate    0.2;        // Volumetric/mass flow rate [m3/s or kg/s]
        value       uniform (0 0 0); // placeholder
    }
    \endverbatim

Note
    - The value is positive inwards
    - May not work correctly for transonic inlets
    - Strange behaviour with potentialFoam since the U equation is not solved
__________________
~roman
romant is offline   Reply With Quote

Old   March 1, 2012, 04:03
Default
  #5
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Dear Roman,

pardon the huge number of messages I am writing, but I would like to better und this point.

I many read the code many times. There's a point that I can not understand: why should we specify something that does not have any effects on our simulation?

Could you try to explain this?

Sorry if I am teasing you. I am just to try to und.

Have a good day,

Samuele
samiam1000 is offline   Reply With Quote

Old   March 1, 2012, 04:08
Default
  #6
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
Quote:
Originally Posted by samiam1000 View Post
Dear Roman,

pardon the huge number of messages I am writing, but I would like to better und this point.

I many read the code many times. There's a point that I can not understand: why should we specify something that does not have any effects on our simulation?

Could you try to explain this?

Sorry if I am teasing you. I am just to try to und.

Have a good day,

Samuele

Hej,

OpenFOAM is based on C++ where new classes and libraries, such as boundary conditions can be derived from previous ones, which also means that they take input parameters and internal values with them. In this case this means that the new class flowRateInletVelocity, which is based on fixedValueFvPatchVectorField, also inherited the value component.

This in turn means that the value variable is part of flowRateInletVelocity and therefore must be specified, otherwise the class is missing an input, even though the variable is never used. Just try it without the variable and you will notice that it won't run.
__________________
~roman
romant is offline   Reply With Quote

Old   March 1, 2012, 04:12
Default
  #7
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 490
Rep Power: 9
samiam1000 is on a distinguished road
Thanks Roman,

thank you very much.

I perfectly understand what you mean. And I completely agree with you. I haven't thought about that.

By the way - though I am afraid I am going off topic - is there `a point' in which I am asked to insert the value of velocity that are used just in case of a reverse flow somewhere?

Thanks again,

Samuele
samiam1000 is offline   Reply With Quote

Old   March 1, 2012, 04:53
Default
  #8
Senior Member
 
Join Date: Mar 2011
Posts: 174
Rep Power: 6
anon_a is on a distinguished road
I think that the "value" field is also needed because it's read by paraview.
At least I think that paraview crashes if I delete that field.
In the beginning it does not make a lot of sense I guess.
anon_a is offline   Reply With Quote

Old   March 4, 2012, 14:58
Default where could i find such this file for all cases?
  #9
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
Ahmed Khattab is on a distinguished road
Quote:
Originally Posted by romant View Post
In the source code it doesn't say anything about that and it gives that the flux is always normal and inwards from the patch.

Code:
Description
    Describes a volumetric/mass flow normal vector boundary condition by its
    magnitude as an integral over its area.

    The basis of the patch (volumetric or mass) is determined by the
    dimensions of the flux, phi.
    The current density is used to correct the velocity when applying the
    mass basis.

    Example of the boundary condition specification:
    \verbatim
    inlet
    {
        type        flowRateInletVelocity;
        flowRate    0.2;        // Volumetric/mass flow rate [m3/s or kg/s]
        value       uniform (0 0 0); // placeholder
    }
    \endverbatim

Note
    - The value is positive inwards
    - May not work correctly for transonic inlets
    - Strange behaviour with potentialFoam since the U equation is not solved
please roman could you tell me the directory where this file exists?
Ahmed Khattab is offline   Reply With Quote

Old   March 5, 2012, 02:41
Default
  #10
Senior Member
 
romant's Avatar
 
Roman Thiele
Join Date: Aug 2009
Location: Stockholm, Sweden
Posts: 360
Rep Power: 12
romant is on a distinguished road
Quote:
Originally Posted by rebel ahmed View Post
please roman could you tell me the directory where this file exists?
You can find it under $FOAM_SRC/finiteVolume/fields/fvPatchFields/derived/flowRateInletVelocity/flowRateInletVelocityFvPatchVectorField.H


__________________
~roman
romant is offline   Reply With Quote

Old   March 5, 2012, 11:11
Default
  #11
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
Ahmed Khattab is on a distinguished road
thanks roman for your swift reply
Ahmed Khattab is offline   Reply With Quote

Old   March 5, 2012, 11:11
Default solvers
  #12
Senior Member
 
Ahmed Khattab's Avatar
 
ahmed
Join Date: Feb 2010
Posts: 161
Blog Entries: 1
Rep Power: 7
Ahmed Khattab is on a distinguished road
roman,
i searched for discription for another type, slip type but this is the only description available. is there is moer detailed description.

Description
Foam::slipFvPatchField

is this available discription for solvers also?, if yes where?

Last edited by Ahmed Khattab; March 5, 2012 at 11:27.
Ahmed Khattab is offline   Reply With Quote

Old   August 13, 2013, 04:42
Default
  #13
New Member
 
Chuyen Nguyen
Join Date: Jul 2013
Posts: 4
Rep Power: 4
ntchuyen is on a distinguished road
Dear all guys,

I used the type flowRateInletVelocity in my case for the velocity field at the inlet. The solver ran well. However this error occured when I open the paraView.

"--> FOAM FATAL IO ERROR:
Please supply either 'volumetricFlowRate' or 'massFlowRate' and 'rho'"

I've used OpenFOAM version 2.1.1.

Can you instruct me to repair it?

Best regard.
ntchuyen is offline   Reply With Quote

Old   May 29, 2015, 03:29
Default
  #14
New Member
 
James F.
Join Date: May 2015
Posts: 20
Rep Power: 1
NoradFirst2 is an unknown quantity at this point
"The basis of the patch (volumetric or mass) is determined by the dimensions of the flux, phi."

Do you know where I can find the dimension of phi?
NoradFirst2 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 18:39.