|
[Sponsors] |
February 21, 2018, 11:22 |
Uniform inlet conditions at curved boundary
|
#1 |
New Member
Join Date: Jun 2012
Posts: 19
Rep Power: 13 |
Hi,
I would like to run a 2D simulation with a curved inlet boundary (an arc). Can I define uniform velocity (i.e. massflow) as normal to the boundary? The inlet boundary type seems to require a velocity vector for both its formulations (TOTAL_CONDITIONS, MASS_FLOW). Is there maybe an alternative boundary condition that would suit such requirement? Thanks a lot, Alberto |
|
February 24, 2018, 12:03 |
|
#2 |
Super Moderator
Francisco Palacios
Join Date: Jan 2013
Location: Long Beach, CA
Posts: 404
Rep Power: 15 |
Dear Alberto,
This is a very interesting suggestion and somehow easy to implement. In fact, if you want a quick fix you can use the option MARKER_ENGINE_EXHAUST where the flow is normal to the surface (you should specify total quantities). Otherwise you can modify void CEulerSolver::BC_Inlet(CGeometry *geometry, CSolver **solver_container, CNumerics *conv_numerics, CNumerics *visc_numerics, CConfig *config, unsigned short val_marker) { } in solver_direct_mean.cpp in particular there is a place where SU2 defines the direction case MASS_FLOW: /*--- Retrieve the specified mass flow for the inlet. ---*/ Density = Inlet_Ttotal[val_marker][iVertex]; Vel_Mag = Inlet_Ptotal[val_marker][iVertex]; Flow_Dir = Inlet_FlowDir[val_marker][iVertex]; Instead of Flow_Dir = Inlet_FlowDir[val_marker][iVertex]; You should write something like Flow_Dir = Inlet_FlowDir[val_marker][iVertex]; you should point Flow_Dir (remember it is a C++ pointer) to the UnitNormal vector. I hope this helps. If you are interesting in developing SU2, you should check www.su2devsociety.org Best, Francisco |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
My radial inflow turbine | Abo Anas | CFX | 27 | May 11, 2018 01:44 |
CFD analaysis of Pelton turbine | amodpanthee | CFX | 31 | April 19, 2018 18:02 |
Divergent temperature in chtMultiRegion(Simple)Foam | akrasemann | OpenFOAM Running, Solving & CFD | 13 | March 24, 2014 02:54 |
rhoSimpleFoam | claco | OpenFOAM | 7 | April 20, 2010 04:32 |
RasInterFoam STRANGE RESULTS AT BOUNDARY | kumar2 | OpenFOAM Running, Solving & CFD | 8 | March 24, 2008 18:38 |