CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > SU2

Mass flow inlet with given temperature

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By hlk

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 9, 2015, 11:48
Question Mass flow inlet with given temperature
  #1
Member
 
William Tougeron
Join Date: Jan 2011
Location: Czech Republic
Posts: 70
Rep Power: 15
taalf is on a distinguished road
Hello,

I would like to set a mass flow inlet with a given temperature. Is it possible in SU2?

In the trunk/config_template.cfg, there is:

Code:
% Inlet boundary type (TOTAL_CONDITIONS, MASS_FLOW)
INLET_TYPE= TOTAL_CONDITIONS
%
% Inlet boundary marker(s) with the following formats (NONE = no marker) 
% Total Conditions: (inlet marker, total temp, total pressure, flow_direction_x, 
%           flow_direction_y, flow_direction_z, ... ) where flow_direction is
%           a unit vector.
% Mass Flow: (inlet marker, density, velocity magnitude, flow_direction_x, 
%           flow_direction_y, flow_direction_z, ... ) where flow_direction is
%           a unit vector.
MARKER_INLET= ( NONE )
%
So, it seems one has to choose between mass flow inlet without temperature and stagnation inlet with temperature.

Is this like this?

Thanks!

Best regards,

William
taalf is offline   Reply With Quote

Old   April 9, 2015, 23:31
Default
  #2
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13
hlk is on a distinguished road
Quote:
Originally Posted by taalf View Post
Hello,

I would like to set a mass flow inlet with a given temperature. Is it possible in SU2?

In the trunk/config_template.cfg, there is:

Code:
% Inlet boundary type (TOTAL_CONDITIONS, MASS_FLOW)
INLET_TYPE= TOTAL_CONDITIONS
%
% Inlet boundary marker(s) with the following formats (NONE = no marker) 
% Total Conditions: (inlet marker, total temp, total pressure, flow_direction_x, 
%           flow_direction_y, flow_direction_z, ... ) where flow_direction is
%           a unit vector.
% Mass Flow: (inlet marker, density, velocity magnitude, flow_direction_x, 
%           flow_direction_y, flow_direction_z, ... ) where flow_direction is
%           a unit vector.
MARKER_INLET= ( NONE )
%
So, it seems one has to choose between mass flow inlet without temperature and stagnation inlet with temperature.

Is this like this?

Thanks!

Best regards,

William
Thank you for your question.
The mass flow rate inlet condition enforces the specified mass flow rate. Other properties are determined from the flow solution, and updated as the iterations proceed. Enforcing the temperature as well as the mass flow rate would be nonphysical for a subsonic inlet because information propagating from downstream changes the flow state at the inlet.
taalf likes this.
hlk is offline   Reply With Quote

Old   October 14, 2015, 23:41
Default
  #3
New Member
 
Keisuke Minami
Join Date: Nov 2014
Posts: 2
Rep Power: 0
kei714 is on a distinguished road
Hi,

I want to set a inlet boundary condition with mass flow and pressure like ansys fluent.

Your consideration of my request would be greatly appreciated.
or could you tell me how to implement it?
kei714 is offline   Reply With Quote

Old   October 15, 2015, 14:25
Default
  #4
hlk
Senior Member
 
Heather Kline
Join Date: Jun 2013
Posts: 309
Rep Power: 13
hlk is on a distinguished road
Quote:
Originally Posted by kei714 View Post
Hi,

I want to set a inlet boundary condition with mass flow and pressure like ansys fluent.

Your consideration of my request would be greatly appreciated.
or could you tell me how to implement it?
In order to make modifications to the boundary conditions, you will want to first download and install from the source code (if you are currently using the binaries/executables). Once you have that working, start making modifications to the code in SU2_CFD/src/solver_direct_mean.cpp. The specific methods to modify will look like CEulerSolver::BC_Inlet, etc.
If you want this functionality alongside the current boundary conditions, you may also want to make modifications to the Common/src/config_structure.cpp and associated files to be able to control which inlet type via the config file.

Caveats if you are just starting out with learning to code/compile C++ and/or are using Windows:
I strongly recommend doing this on a linux or Apple operating system - it is much, much harder to do this on a Windows operating system. Linux operating systems are generally free and can be used on a windows machine via virtual machines or a partition. I also recommend using an IDE such as XCode or Eclipse to make code navigation easier.
hlk is offline   Reply With Quote

Reply


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
Issues on the simulation of high-speed compressible flow within turbomachinery dowlee OpenFOAM Running, Solving & CFD 11 August 6, 2021 06:40
Loop of a inlet mass flow rate .Thomas. Fluent UDF and Scheme Programming 2 August 22, 2014 08:44
ON/OFF mass flow at an inlet boundary condition visitor FLUENT 1 April 12, 2014 12:07
Combination of mass flow inlet and pressure inlet boundaries MrStuebb Main CFD Forum 0 January 6, 2011 09:59
mass flow inlet Mech FLUENT 2 July 7, 2006 07:37


All times are GMT -4. The time now is 15:24.