Questions tagged [finite-element-method]
Usage of the Finite Element Method embedded in NDSolve and details on the implementation of the fem in mathematica.
1,703 questions
3
votes
2
answers
226
views
Solving a coupled 2nd order differential equation numerically using NDSolve
I would like to solve the following system of differential equations numerically for two one-dimensional functions $R(x)$ and $\phi(x)$:
\begin{eqnarray}
c_1 \left(R''(x) - (\phi'(x))^2 R(x) \right) - ...
1
vote
0
answers
125
views
Why Interpolation with InterpolationOrder -> 1 looks smooth in 2D case?
The following code
...
0
votes
0
answers
144
views
Oblique derivative boundary conditions in FEM
In one of my tasks, it is necessary to set a boundary condition in the form of an oblique derivative for the two-dimensional Laplace equation.
Do you know how this can be done in Wolfram Mathematics? ...
2
votes
1
answer
118
views
Machine number overflow when solving a PDE system
Recently I asked a question on solving a system of 3 nonlinear PDE (To solve a system of 3 nonlinear PDE). Now I transitioned to the next step, that is, a realistic PDE which has been my initial aim:
<...
9
votes
3
answers
405
views
To solve a system of 3 nonlinear PDE
I am trying to solve a system of 3 nonlinear partial differential equations:
...
2
votes
3
answers
248
views
Heat equation with b.c. at $+\infty$ and i.c. at $-\infty$
I am wondering what is the best way to solve numerically a initial-boundary value problem of heat equation like this (surely I've made a lot of mistakes in the code):
...
5
votes
2
answers
314
views
NDSolve exceedingly slow
I the following ODE with parameters
\begin{align}
B_e\: \theta''(s)+2(s-1)\cos\theta(s)=S_e\: f\left(\theta(s)\right),
\end{align}
with $0\leq s\leq 1$ and
\begin{align}
\theta(0)=0\:\:\:\text{and}\:\:...
1
vote
1
answer
132
views
Can't evaluate and plot eigenfunctions after using NDEigensystem
I used NDEigensystem for finding eigenvalues and eigenfunctions of specified dif. operator. If I set R=1 everything is good and I get right results, but when I set R=10 and more I get complex ...
6
votes
2
answers
459
views
Can we construct 3D meshes that respect internal boundaries?
In a recent answer to a question on constructing 2D meshes with internal boundaries @user21 provided an extremely useful answer which can be found here.
I have tried to extend this to 3D by ...
0
votes
0
answers
76
views
How to Solve PDE using Inactive Form
I am trying to solve this PDE using the inactive form, however I ran into error stating that the: The PDE coefficient 0....
10
votes
2
answers
446
views
Mesh Rectangle with a fixed inner Line
In this simple example I try to mesh a rectangle, the mesh should include a fixed line.
Using "IncludePoints" I get
...
0
votes
0
answers
111
views
PDE in inactive form
I am trying to solve this complex PDE, however I am getting an error from Mathematica stating: The maximum derivative order of the nonlinear PDE coefficients for the Finite Element Method is larger ...
5
votes
1
answer
342
views
Solving Poisson's Equation Numerically
I'm trying to numerically solve Poisson's equation for the following scenario:
The potential inside a cylinder of radius R=1 and height H=2 with uniform charge density(which I'll set to 1).
Poisson's ...
3
votes
1
answer
149
views
Speed up a finite element solver with small features (full code without error)
This is a question similar to the previous one with small features. I'm solving this problem by modifying the method of @Alex. The code can run without error, but it was always stuck at ~...
6
votes
1
answer
567
views
How can I color a cylinder inside a sphere?
I am trying to draw a figure and color it like this from here:
I tried
CSGRegion["Difference", {Ball[{0, 0, 0}, 5], Cylinder[{{0, 0, -5}, {0, 0, 5}}, 2]}]
...