- #1
Telemachus
- 835
- 30
Hi there. I wanted to plot a surface, given implicitly by a function ##f(x,y,z)=c##, with ##c## a constant. My ##f(x,y,z)## is obtained numerically, so I don't know the expression explicitly, I have the values of ##f(x_i,y_j,z_k)## for given integer numbers ##(i,j,k)##, ##i=1,2,3...## same for ##j## and ##k##. And the discrete variables are ##x_i=(i-1)\Delta x## and similarly for ##y_j,z_k##.
So, in principle I can obtain, numerically a set of data for which ##f(x_i,y_j,z_k)=c##, where the ##x_i,y_j,z_k## are stored, and I know c (I just choose the value I want). And now I know that for those values, the magnitude of ##f(x,y,z)=c##, so this defines a 3D surface. Now, how can I plot this? it should be clear at this point that f might not define explicitly a function, it might not be bijective, it is likely to be a closed surface, like a spherical surface in 3D.
So, in principle I can obtain, numerically a set of data for which ##f(x_i,y_j,z_k)=c##, where the ##x_i,y_j,z_k## are stored, and I know c (I just choose the value I want). And now I know that for those values, the magnitude of ##f(x,y,z)=c##, so this defines a 3D surface. Now, how can I plot this? it should be clear at this point that f might not define explicitly a function, it might not be bijective, it is likely to be a closed surface, like a spherical surface in 3D.