Message Boards Message Boards

0
|
2255 Views
|
3 Replies
|
0 Total Likes
View groups...
Share
Share this post:

3D plotting a function and showing a parameter variation?

Posted 2 years ago

Hello i am trying to plot a function using Plot3D

ClearAll["Global`*"];
M0 = 1;
M = 3;
\[Beta] = Sqrt[(\[Sigma]^2 + M^2)/M0];
ucap[\[Beta]_, r_] := (
  3 \[Beta]^2 ((1 + r \[Beta]^2) BesselI[0, 
       2 \[Beta]] - (1 + \[Beta]^2) BesselI[0, 
       2 Sqrt[r] \[Beta]]))/((6 + 9 \[Beta]^2 + 2 \[Beta]^4) BesselI[
     0, 2 \[Beta]] - 
   6 (1 + \[Beta]^2)^2 Hypergeometric0F1Regularized[2, \[Beta]^2]);
Table[
 Plot3D[
  ucap[\[Beta], r] /. {r -> Norm[{x, y}]}, {x, -1, 1}, {y, -1, 1},
  RegionFunction -> (Norm[{#, #2}] <= 1 &),
  ImageSize -> Large,
  AxesLabel -> {"Axial velocity"},
  PlotStyle -> Thick
  ],
 {\[Sigma], {1, 5, 30, 100}}
 ]

Here is one sample from an article

enter image description here.

I also want to show the function in animation form for sigma values 0 to 100. Please Help

POSTED BY: KRISHAN SHARMA
3 Replies

Looking at the sample you provided you probably want RevolutionPlot3D instead of Plot3D. Try:

Table[RevolutionPlot3D[ucap[\[Beta], r], {r, 0, 1}, 
  ImageSize -> Large, AxesLabel -> {"Axial velocity"}, 
  MeshStyle -> Thick, PlotStyle -> None], {\[Sigma], {1, 5, 30, 100}}]
POSTED BY: Henrik Schachner
Posted 2 years ago

Thanks Henrik Schachner, it worked.

I want to delete those lines and move the axes lable as depicted below

enter image description here

POSTED BY: KRISHAN SHARMA

Maybe using the options:

AxesLabel -> "Axial velocity", Boxed -> False
POSTED BY: Henrik Schachner
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard

Group Abstract Group Abstract