Take the 2-minute tour ×
Mathematica Stack Exchange is a question and answer site for users of Mathematica. It's 100% free, no registration required.

The output of the following code is the same as the input.

waals = (P + a/V^2) (V - b) == R T;

ContourPlot3D[waals /. {a -> 1, b -> 1, R -> 1},
 {P, 0, 100}, {V, 0, 100}, {T, 0, 100}]

But

ContourPlot3D[(P + 1/V^2) (-1 + V) == T,
 {P, 0, 100}, {V, 0, 100}, {T, 0, 100}]

works fine.

What's wrong? Do I have to specify all the parameters in the equation?

share|improve this question
    
Related: mathematica.stackexchange.com/q/1731 –  Michael E2 Aug 9 '13 at 4:02
add comment

1 Answer 1

up vote 4 down vote accepted

enter image description hereYou need to evaluate it before Plot to get placements done.

ContourPlot3D[
 Evaluate[waals /. {a -> 1, b -> 1, R -> 1}], {P, 0, 100}, {V, 0, 
  100}, {T, 0, 100}]

As suggested by @rcollyer, ContourPlot3d has HoldAll attribute, which can be seen as ,Attributes[ContourPlot3D] (*{HoldAll, Protected, ReadProtected}*)

share|improve this answer
3  
The more complete answer is it has the HoldAll attribute. –  rcollyer Aug 8 '13 at 19:22
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.