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

Time varying boundary conditions

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 18, 2014, 10:55
Question Time varying boundary conditions
  #1
New Member
 
Tansu
Join Date: Apr 2014
Location: Turkey
Posts: 16
Rep Power: 12
tsevine is on a distinguished road
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
tsevine is offline   Reply With Quote

Old   August 22, 2014, 15:49
Default
  #2
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 tsevine View Post
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
fpalacios is offline   Reply With Quote

Old   August 23, 2014, 13:21
Default
  #3
New Member
 
Tansu
Join Date: Apr 2014
Location: Turkey
Posts: 16
Rep Power: 12
tsevine is on a distinguished road
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
tsevine is offline   Reply With Quote

Old   February 2, 2020, 22:12
Default Time varying pressure or velocity boundary condition in SU2
  #4
New Member
 
Shyam Sunder
Join Date: Sep 2015
Posts: 27
Rep Power: 11
ssyadav is on a distinguished road
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
ssyadav is offline   Reply With Quote

Reply


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
High Courant Number @ icoFoam Artex85 OpenFOAM Running, Solving & CFD 11 February 16, 2017 14:40
dynamic Mesh is faster than MRF???? sharonyue OpenFOAM Running, Solving & CFD 14 August 26, 2013 08:47
mixerVesselAMI2D's mass is not balancing sharonyue OpenFOAM Running, Solving & CFD 6 June 10, 2013 10:34
IcoFoam parallel woes msrinath80 OpenFOAM Running, Solving & CFD 9 July 22, 2007 03:58
Could anybody help me see this error and give help liugx212 OpenFOAM Running, Solving & CFD 3 January 4, 2006 19:07


All times are GMT -4. The time now is 18:23.