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

How to distinguish multiple inlets

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

Reply
 
LinkBack Thread Tools Display Modes
Old   September 3, 2013, 01:52
Default How to distinguish multiple inlets
  #1
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 4
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, 07:50
Post
  #2
Member
 
Akash Chaudhari
Join Date: Dec 2012
Location: Pune, India
Posts: 31
Rep Power: 4
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, 06:35
Default
  #3
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 4
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, 03:39
Default
  #4
Super Moderator
 
Thomas D. Economon
Join Date: Jan 2013
Location: Stanford, CA
Posts: 251
Rep Power: 5
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, 02:33
Default
  #5
Member
 
Sreekanth
Join Date: Jun 2013
Location: India
Posts: 30
Rep Power: 4
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, 14:24
Default
  #6
Super Moderator
 
Francisco Palacios
Join Date: Jan 2013
Location: Stanford, CA
Posts: 301
Rep Power: 5
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

Reply

Tags
multiple injections, multiple inlets

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
how to set periodic boundary conditions Ganesh FLUENT 13 January 22, 2014 05:11
OpenFOAM static build on Cray XT5 asaijo OpenFOAM Installation 9 April 6, 2011 12:21
Multiple inlets problem Jeff Main CFD Forum 2 August 17, 2005 10:48
Multiple Inlets Charlie V FLUENT 0 May 28, 2001 02:29
multiple inlets Bob Haase Main CFD Forum 1 January 19, 2001 21:57


All times are GMT -4. The time now is 04:01.