CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   SU2 (http://www.cfd-online.com/Forums/su2/)
-   -   How to distinguish multiple inlets (http://www.cfd-online.com/Forums/su2/123023-how-distinguish-multiple-inlets.html)

shsreekanth September 3, 2013 01:52

How to distinguish multiple inlets
 
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?

Akash C September 3, 2013 07:50

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 )


shsreekanth September 6, 2013 06:35

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

economon September 12, 2013 03:39

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

shsreekanth September 24, 2013 02:33

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?

fpalacios October 3, 2013 14:24

Quote:

Originally Posted by shsreekanth (Post 453253)
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


All times are GMT -4. The time now is 06:44.