Guest User

Untitled

a guest
Nov 19th, 2017
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.57 KB | None | 0 0
  1. equation = (-0.4692*cprop+1.4919)*(pco2-tc)+(so+a/(po2-po))*(pco2-tp)+dw == k*vco2/(pco2*(1-vdanat-vdalvratio))-(psv-vth*r-peepi)*fr/(1/cl + 1/ccw);
  2.  
  3. fpco2[r_,dw_,a_,fr_,po_,tc_,tp_,cprop_,po2_,peepi_,so_,vth_,psv_,cl_,ccw_,k_,vco2_,vdanat_,vdalvratio_] := Evaluate[equation];
  4.  
  5. Pane[
  6. Manipulate[
  7. Column[{
  8. Pane[{"Test =",solution}]}],
  9. {{cl,0.075,"CL"},0,2,Appearance->"Labeled"},
  10. {{ccw,0.125,"CCW"},0,2.5,Appearance->"Labeled"},
  11. {{r,5,"R"},0,10,Appearance->"Labeled"},
  12. {{peepi,0,"PEEPi"},0,20,Appearance->"Labeled"},
  13. {{po2,100,"PO2"},60,140,Appearance->"Labeled"},
  14. {{vth,0.2,"VTH"},0,1,Appearance->"Labeled"},
  15. {{psv,0,"PSV"},0,15,Appearance->"Labeled"},
  16. {{cprop,0.5,"CPROP"},0,3,Appearance->"Labeled"},
  17. {{dw,7,"DW"},0,15,Appearance->"Labeled"},
  18. {{a,16.7,"A"},0,20,Appearance->"Labeled"},
  19. {{fr,20,"FR"},0,30,Appearance->"Labeled"},
  20. {{po,30,"PO"},0,50,Appearance->"Labeled"},
  21. {{tc,34,"TC"},0,50,Appearance->"Labeled"},
  22. {{tp,34,"TP"},0,50,Appearance->"Labeled"},
  23. {{so,0,"SO"},0,2,Appearance->"Labeled"},
  24. {{k,0.75,"K"},0,5,Appearance->"Labeled"},
  25. {{vco2,0.25,"VCO2"},0,3,Appearance->"Labeled"},
  26. {{vdanat,0.12,"VDANAT"},0,1,Appearance->"Labeled"},
  27. {{vdalvratio,0.3,"VDALV"},0,1,Appearance->"Labeled"},
  28. ContentSize->Automatic]
  29. ]
  30.  
  31. fpco2[5,7,16.7,20,30,34,34,0.5,100,0,0,0.2,10,0.075,0.125,0.75,0.25,0.12,0.3]
  32.  
  33. 7 + 1.49587 (-34 + pco2) == -8.4375 + 0.323276/pco2
  34.  
  35. NSolve[fpco2[5,7,16.7,20,30,34,34,0.5,100,0,0,0.2,10,0.075,0.125,0.75,0.25,0.12,0.3],pco2]
  36.  
  37. {{pco2 -> 23.6891}, {pco2 -> -0.00912287}}
Add Comment
Please, Sign In to add comment