van der Waal's P-V diagram (using numerical methods)

This code calculates the critical temperature and phase transformation pressure for a given temperature using van der Waal's EoS.

You are now following this Submission

Van der Waal's equation of state is one of the most well-known real equations of state. This script numerically calculates the points of inflection of the P-V isotherms and then finds the critical temperature of a given substance (i.e. when the points of inflection coincide).
Also, it calculates the pressure at which the phase transformation will occur, i.e. when the area enclosed by P-V isotherm and that constant pressure line above and below the constant P line is the same. This code is based on numerical methods so it may not give results in the shortest possible time.
*Please rate it if you like it !!!*

Cite As

Rohit Jangir (2026). van der Waal's P-V diagram (using numerical methods) (https://www.mathworks.com/matlabcentral/fileexchange/86907-van-der-waal-s-p-v-diagram-using-numerical-methods), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.1.2

Bug fixes.

1.1.1

Minor code improvements.

1.1.0

Inclusion of compressibility factor.

1.0.2

Minor code improvements.

1.0.1

Use of while loop instead of for loop to be able to change the loop increment to increase accuracy.

1.0.0