CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   SU2 (https://www.cfd-online.com/Forums/su2/)
-   -   Time varying boundary conditions (https://www.cfd-online.com/Forums/su2/140572-time-varying-boundary-conditions.html)

tsevine August 18, 2014 09:55

Time varying boundary conditions
 
Hi,

I need to apply time varying boundary conditions to SU2 but i don't know how to do it. i looked at github and forum but there is no any topic related with it in SU2. there are many topics with other solvers but i am not sure that they are works for SU2. Is it possible to apply those kind of BC's to SU2?

In other words, i have a .dat file that includes boundary conditions in node based. I mean they are not just inlet, outlet or farfield. I need to apply them to whole domain and every nodes. They are changing every time step.

Is there any way to read that data to SU2. Do i need to change the .cpp code or do i need to change .cfg file or both ??

Any help is much appreciated.

Thanks in advance

Tansu

fpalacios August 22, 2014 14:49

Quote:

Originally Posted by tsevine (Post 506479)
Hi,

I need to apply time varying boundary conditions to SU2 but i don't know how to do it. i looked at github and forum but there is no any topic related with it in SU2. there are many topics with other solvers but i am not sure that they are works for SU2. Is it possible to apply those kind of BC's to SU2?

In other words, i have a .dat file that includes boundary conditions in node based. I mean they are not just inlet, outlet or farfield. I need to apply them to whole domain and every nodes. They are changing every time step.

Is there any way to read that data to SU2. Do i need to change the .cpp code or do i need to change .cfg file or both ??

Any help is much appreciated.

Thanks in advance

Tansu

Hi,
In this particular case, I think it is better to change the source code. In previous version sod SU2 a method to dynamically change the Mach and angle of attack at the far-field was implemented, but you are looking for something more generic.

Maybe you should take a look at the following subroutines in solver_direct_mean.cfg

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

and the far-field boundary conditions

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

Cheers,
Francisco

tsevine August 23, 2014 12:21

Thank you Francisco. I will try to do that.

I will let you know if i could do this or not for the other users who trouble with same issue.

Regards,
Tansu

ssyadav February 2, 2020 21:12

Time varying pressure or velocity boundary condition in SU2
 
Dear All


How can we implement time varying pressure or velocity at the inlet of the domain?


Something like : P(t) = P0*Sin(A*t) where t is the actual simulation time.


Kindly help.


Thanks


All times are GMT -4. The time now is 05:14.