# Questions tagged [discretization]

The tag has no usage guidance.

54 questions
Filter by
Sorted by
Tagged with
0answers
44 views

### How to solve the nonlinear Schrödinger equation using 4-order Runge Kutta method? [closed]

I want to solve numerically the nonlinear Schrödinger equation (in Matlab) $$\frac{\partial\psi}{\partial t}=-\Delta\psi - |\psi|^2\psi$$ using RK4 but i don't know how to do this.
1answer
59 views

### Are there commands other than ListPlot3D for plotting 3D points, where one coordinate ls either 0 or 1, and the other two lie in [0,1]?

I have a set of 3D points, the first coordinate of which, say, is confined to the values 0 and 1, while the other two can assume values within the unit interval [0,1]. ListPlot3D shows a continuous ...
2answers
144 views

### Calculate surface normals at the boundary of a Graphics3D object

How do I go about calculating and plotting the surface normals at the boundary of a Graphics3D object? For example, consider this custom-defined ...
0answers
23 views

### How to set PDE coefficient as a list of discrete data

How to set a pde time-dependent coefficient, not as an analytic function in time, but as a discrete data vector or list, each element of that list represents the coefficient value on a specific time ...
1answer
157 views

### MeshRefinementFunction on 2D surfaces embedded in 3D

DiscretizeRegion doesn't seem to run the supplied MeshRefinementFunction when meshing a 2D surface in 3D. For example: ...
0answers
36 views

1answer
150 views

### Issue with discretizing two arbitrary regions

Description This is in relation to this question. I am trying to derive this conical figure yet I seem to get an error with this code. I would be happy if someone could point out how to solve this ...
1answer
261 views

### Beginner Simulating Gaussian Process with Correlation

I have no little experience with algorithms. I would like to learn how to simulate a real valued Gaussian process with correlation (e.g., exponentially correlated $\Gamma(t)=e^{-\vert t \vert/2}).$ ...
4answers
260 views

### Discretize chart in a given interval

Using the following code: plot = Plot[Sin[x], {x, -Pi, Pi}]; points = Cases[plot // Normal, Line[{x__}] -> x, Infinity]; ListPlot[points] I get: Question: Is ...
1answer
104 views

### Unexpected behavior of DiscretizeGraphics

As this code,we can visualize the "Test text" Graphics[Text[Style["Test text",20],{0,0}],Axes->True,AxesOrigin->{0,0}] I try to use <...
2answers
416 views

### How to apply DiscretizeGraphics to a tube? [duplicate]

I want to export the numerical solution of the Chan-Lee oscillator as an STL file so that I could print it out. But when I expanded the curve into a tube, ...
3answers
374 views

### How to generate grid points on boundary of $[-1,1]^d$ for arbitrary dimension $d$ and specified resolution?

This must be a trivial thing, but I was not able to find a function for it in Mathematica. How do you efficiently create a grid with constant but specific resolution $r$ in all directions on the ...
1answer
1k views

### Finding NonlinearModelFit of multiple data sets with the same parameters and in two dimensions

I have multiple sets of data (between 3 and 6 depending on the cases) dependent of space, time, and some parameters. The data are the response of a harmonic oscillator under a non-trigonometrical ...
1answer
159 views

### DiscretizeRegion fails for a triangular region

Bug introduced in 10.2.0 or earlier and fixed in 11.0.0 I define an implicit region like ...
1answer
118 views

### How to turn a Graphics primitive into a list of data?

I tried something small first, to get a feeling about this. So I defined a Rectangle[], placed it in a corner of ...