CFD Online Logo CFD Online URL
Home > Forums > General Forums > System Analysis

sod's test by lax-friedrichs method

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Search this Thread Display Modes
Old   December 15, 2018, 07:14
Default sod's test by lax-friedrichs method
New Member
Join Date: Dec 2018
Posts: 1
Rep Power: 0
mend4x is on a distinguished road
hi everyone!
I've been solving Sod's Shock Tube Problem with Lax-Friedrichs method on C++. I use this link as the main one. But I face the problem with defining entropy. I found
  • density,
  • velocity,
  • pressure,
  • Mach number,
  • speed of sound;
but entropy fails. Can anyone help me with it?

P.S. I attached the archive with code and graphs
Attached Files
File Type: zip sod (152.5 KB, 2 views)
mend4x is offline   Reply With Quote

Old   December 20, 2018, 13:40
Join Date: Jul 2012
Posts: 37
Rep Power: 9
Eifoehn4 is on a distinguished road
Dear mend4x,
Entropy in general is a value, which is calculated via integral relation. This means, you have to know the reference state to compare your solution. Nevertheless you can compare the difference between two neighboor cells or you can shift your solution to the correct level.
You should also check if the reference solution uses Entropy per mass or Entropy per volume.

If your calculation variables match the reference, then the problem is only a post-processing issue.
Eifoehn4 is offline   Reply With Quote


euler equation, lax-friedrichs, riemman, sod shock tube

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OF 1.6 | Ubuntu 9.10 (64bit) | GLIBCXX_3.4.11 not found piprus OpenFOAM Installation 22 February 25, 2010 13:43
Problems in compiling paraview in Suse 10.3 platform chiven OpenFOAM Installation 3 December 1, 2009 07:21
SIMPLEC Method meshkati Main CFD Forum 6 November 19, 2009 00:48
test cases Maciej Matyka Main CFD Forum 3 November 24, 2004 08:27
time accuracy test nat Main CFD Forum 0 April 1, 2003 23:24

All times are GMT -4. The time now is 11:07.