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

How to distinguish multiple inlets

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 3, 2013, 02:52
Default How to distinguish multiple inlets
  #1
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 13
shsreekanth is on a distinguished road
Hi,
My problem involves a primary flow and a secondary cross flow, i.e i have two inlets at different locations. How do I implement this in the configuration file. The file shows "inlet marker(s)" , so there should be a way to give multiple inlet markers. Please tell me what is the synatax for this.
Also I want the both the inlet velocities to be different. How do I implement this?
shsreekanth is offline   Reply With Quote

Old   September 3, 2013, 08:50
Post
  #2
Member
 
Akash Chaudhari
Join Date: Dec 2012
Location: Pune, India
Posts: 31
Rep Power: 14
Akash C is on a distinguished road
Refer to the template configuration file provided with the latest version of SU2. It goes by the name config_template.cfg. I found the following in it which might be useful in your case:
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 )
Akash C is offline   Reply With Quote

Old   September 6, 2013, 07:35
Default
  #3
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 13
shsreekanth is on a distinguished road
Thanks a lot Akash. I think the inlet_type option will help me out. I did not know of the config_template.cfg file either. Now that I find it, i see that there is a short explanation of how to give the options. I
shsreekanth is offline   Reply With Quote

Old   September 12, 2013, 04:39
Default
  #4
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 271
Rep Power: 14
economon is on a distinguished road
Yep, you guys have it... you can specify as many inlets as you would like if you simply continue the list with the proper inputs. For instance, something like the following would give you two inlets with different prescribed inputs:

MARKER_INLET= ( inlet_1, 300.0, 100000.0, 1.0, 0.0, 0.0, inlet_2, 310.0, 110000.0, 0.0, 1.0, 0.0 )

Cheers,
Tom
economon is offline   Reply With Quote

Old   September 24, 2013, 03:33
Default
  #5
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 13
shsreekanth is on a distinguished road
Hi,
I found this method useful. But there is something more I want to do. I read , SU2 has multi phase simulations.
In my problem, I have air in the primary inlet and a different gas in the secondary inlet. I need to analyze the mixing of the two and get the concentration profiles at different locations. For this I need to specify that the gas at secondary inlet is different from the primary fluid.
Can I do this problem in SU2?
shsreekanth is offline   Reply With Quote

Old   October 3, 2013, 15:24
Default
  #6
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15
fpalacios is on a distinguished road
Quote:
Originally Posted by shsreekanth View Post
Hi,
I found this method useful. But there is something more I want to do. I read , SU2 has multi phase simulations.
In my problem, I have air in the primary inlet and a different gas in the secondary inlet. I need to analyze the mixing of the two and get the concentration profiles at different locations. For this I need to specify that the gas at secondary inlet is different from the primary fluid.
Can I do this problem in SU2?
Hi,
Yes, multiphase is an active research part of SU2 (in particular multiphase research). We are using Level Set, and we are migrating from a segregated strategy to a fully coupled method. So, our recommendation is to fork the https://github.com/su2code repository and update the solver frequently.

In order to specify what you propose, for the time being we are using the subroutine

void CEulerSolver::SetInitialCondition(CGeometry **geometry, CSolver ***solver_container, CConfig *config, unsigned long ExtIter) {

in solver_direct_mean.cpp

And the boundary conditions are updated in situ in

void CEulerSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container, CNumerics *conv_numerics, CNumerics *visc_numerics, CConfig *config, unsigned short val_marker)

and

void CEulerSolver::BC_Outlet(CGeometry *geometry, CSolver **solver_container, CNumerics *conv_numerics, CNumerics *visc_numerics, CConfig *config, unsigned short val_marker)

same file. My recommendation is to follow the boolean freesurface to understand how the air/water case works and the introduce the modifications that you need for your problem.

Best,
Francisco
fpalacios is offline   Reply With Quote

Old   October 19, 2018, 09:54
Default
  #7
Member
 
atelcikti1's Avatar
 
Join Date: Mar 2017
Posts: 61
Rep Power: 9
atelcikti1 is on a distinguished road
Hi guys,


How can I define two separate inlet which are defined by pressure inlet (total condition) and velocity inlet (mass flow). As far as I try SU2 does not allow you to define two inlet type.


Thanks.
atelcikti1 is offline   Reply With Quote

Old   November 1, 2018, 07:39
Default
  #8
Member
 
atelcikti1's Avatar
 
Join Date: Mar 2017
Posts: 61
Rep Power: 9
atelcikti1 is on a distinguished road
Edit: I guess Riemann BCs will solve the problem

Last edited by atelcikti1; November 1, 2018 at 10:33.
atelcikti1 is offline   Reply With Quote

Reply

Tags
multiple injections, multiple inlets


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
how to set periodic boundary conditions Ganesh FLUENT 15 November 18, 2020 07:09
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 13:21
Multiple inlets problem Jeff Main CFD Forum 2 August 17, 2005 11:48
Multiple Inlets Charlie V FLUENT 0 May 28, 2001 03:29
multiple inlets Bob Haase Main CFD Forum 1 January 19, 2001 21:57


All times are GMT -4. The time now is 03:31.