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

Shock tube simulation in Fluent

Register Blogs Community New Posts Updated Threads Search

Like Tree8Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 27, 2018, 21:19
Default
  #21
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
Quote:
Originally Posted by vek123 View Post
hi, i tried your udf and i get wrong pressure distribution i get separate regions but not as written in the text file i get very small pressures like between 10e-8 and 10e-5.
What you have replied is a rather old thread. By any chance did you choose incompressible fluid rather than ideal gas in your setup?
blackmask is offline   Reply With Quote

Old   August 27, 2018, 23:14
Default
  #22
New Member
 
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 8
vek123 is on a distinguished road
that's a possibility i am gonna repeat the steps again, and make sure i don't miss anything. honestly i didn't choose either of them.
vek123 is offline   Reply With Quote

Old   August 27, 2018, 23:24
Default
  #23
New Member
 
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 8
vek123 is on a distinguished road
Quote:
Originally Posted by blackmask View Post
What you have replied is a rather old thread. By any chance did you choose incompressible fluid rather than ideal gas in your setup?

can i upload a video to youtube showing the steps i am going through and maybe you can spot the error?
vek123 is offline   Reply With Quote

Old   August 28, 2018, 00:57
Default
  #24
New Member
 
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 8
vek123 is on a distinguished road
Quote:
Originally Posted by blackmask View Post
What you have replied is a rather old thread. By any chance did you choose incompressible fluid rather than ideal gas in your setup?

here is the video of what i did in fluent

https://youtu.be/DZOyHQQs4rk
vek123 is offline   Reply With Quote

Old   August 28, 2018, 01:36
Default
  #25
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
You have to set the material property for the computation. By default the fluid is assumed to be incompressible but you have to change it to ideal gas law in this case. Also, please make sure that your domain range is exactly as the comment of the UDF stated.
blackmask is offline   Reply With Quote

Old   August 28, 2018, 01:45
Default
  #26
New Member
 
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 8
vek123 is on a distinguished road
Quote:
Originally Posted by blackmask View Post
You have to set the material property for the computation. By default the fluid is assumed to be incompressible but you have to change it to ideal gas law in this case. Also, please make sure that your domain range is exactly as the comment of the UDF stated.

IT WORKED, i changed the density from constant to ideal gas and the changed the solver from pressure driven to density driven, and i got a nice contour, it looks better, i still need to tweak some variable a little bit, i believe the domain is right it's like this:
[X]: from 0 to 10 meters

[Y]: from -0.1 to 0.1 meters

[Z]: from -1 to 1 meters
i tried with low resolution mesh of 20x20x1
vek123 is offline   Reply With Quote

Old   August 29, 2018, 00:19
Default
  #27
New Member
 
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 8
vek123 is on a distinguished road
Quote:
Originally Posted by blackmask View Post
You have to set the material property for the computation. By default the fluid is assumed to be incompressible but you have to change it to ideal gas law in this case. Also, please make sure that your domain range is exactly as the comment of the UDF stated.



so i just discovered that somehow after initializing using the udf, i get wrong densities right away
Attached Images
File Type: png density issue.PNG (34.5 KB, 9 views)
vek123 is offline   Reply With Quote

Old   August 29, 2018, 01:23
Default
  #28
Senior Member
 
Join Date: Aug 2011
Posts: 421
Blog Entries: 1
Rep Power: 22
blackmask will become famous soon enough
What fluid do you use in your computation? Did you type in the code rather than copy& paste? The pressure ratio is 10 (1e5 versus 1e5) and the temperature ratio is 1.25, which according to the ideal gas law will lead to a density ratio of 8, no matter whatever the fluid is. But in your figure, the density ratio is no more than 1.5, so in your code either the temperature ratio is not 1.25, or the pressure ratio is not 10.
blackmask is offline   Reply With Quote

Old   September 6, 2018, 00:21
Default
  #29
New Member
 
vektor
Join Date: Aug 2018
Posts: 23
Rep Power: 8
vek123 is on a distinguished road
Quote:
Originally Posted by blackmask View Post
What fluid do you use in your computation? Did you type in the code rather than copy& paste? The pressure ratio is 10 (1e5 versus 1e5) and the temperature ratio is 1.25, which according to the ideal gas law will lead to a density ratio of 8, no matter whatever the fluid is. But in your figure, the density ratio is no more than 1.5, so in your code either the temperature ratio is not 1.25, or the pressure ratio is not 10.



hi, i am sorry. i just didn't set the operation pressure to zero, i finally got extremely accurate results using ausm scheme. thank you, but i am still not sure what the operating pressure means, is it like the static or atmospheric pressure? thanks
vek123 is offline   Reply With Quote

Reply

Tags
shock tube, simulation


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
HELP - Moving car simulation in fluent Brad Wells FLUENT 7 January 4, 2018 19:55
shock absorber simulation dik FloEFD, FloWorks & FloTHERM 2 May 7, 2010 08:36
[ask] shock absorber simulation dik Main CFD Forum 1 December 17, 2009 01:32
Fluent Remote Simulation Facility Service (RSF) di Rami FLUENT 2 June 4, 2008 05:38
Shock Tube Test queram Main CFD Forum 0 July 8, 2006 04:24


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