Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options answers only not deleted user 4999

Usage of the Finite Element Method embedded in NDSolve and details on the implementation of the fem in mathematica.

4 votes

Failure to create a mesh with ToElementMesh

The explanation is in the error message (emphasis mine): ToElementMesh::fememins: The mesh elements are not valid. A set of valid mesh element incidents needs to be positive integers and be able t …
3 votes
Accepted

Problem with MeshOrderAlteration to create a 2nd order ElementMesh

The OP's simpler mesh has the form mesh (* ElementMesh[{{-0.707107, 0.707107}, {-1., -0.11547}, {-0.707107, 0.707107}}, {HexahedronElement["<" 64 ">"], HexahedronElement["<" 64 ">"], Hexah …
Michael E2's user avatar
  • 245k
4 votes
Accepted

How to prevent NDSolve to store result for each time step?

Sorry just to drop code, but I'm bit too busy at the moment to write up a presentation. Hopefully the code with still be helpful. Ask questions and I'll try to address them later. The testing setup …
Michael E2's user avatar
  • 245k
3 votes
Accepted

Multidimensional NIntegrate with Interpolating

You could use a simpler test function for the sake of illustration. Let's take the following function over the implied rectangle, which can integrated exactly for the sake of comparison with the appro …
Michael E2's user avatar
  • 245k
3 votes

Does Interpolation support multi-dimension input and output?

No, interpolating vectors is possible, but I think that when the data points form an unstructured input grid, then interpolation is restricted to scalar. At least I didn't succeed. However on a recta …
Michael E2's user avatar
  • 245k
2 votes
Accepted

Finding the equation for the upper frontier of the convex hull of a 2 dimensional set of points

You can build one out of region functions, at least for mesh regions. One could always discretize other regions, but the answer will be approximate and probably not highly accurate. More efficient …
Michael E2's user avatar
  • 245k
3 votes

Finding the equation for the upper frontier of the convex hull of a 2 dimensional set of points

Here's a pretty neat way, based on the new FEM utilities for dealing with meshes, that works automatically for dimension 2 and 3, positively oriented, convex, simplex-element meshes. (More precisely, …
Michael E2's user avatar
  • 245k
4 votes

How to find the direction of the outward normal in a point of the boundary of a 2D region?

Maybe this can get you started. It assumes the point {x, y} is on the boudary and that the region is described by inequalities involving either <= or >= that are returned by RegionMember. normal[reg …
Michael E2's user avatar
  • 245k
6 votes

Build an InterpolatingFunction with ElementMeshInterpolation

Somewhat manual construction: << NDSolve`FEM` mesh = ToElementMesh[Disk[], MaxCellMeasure -> Infinity]; tl = Range[0, 1, 0.2]; mesh3 = MeshOrderAlteration[ With[{gc = ElementMeshToGraphicsComplex@ …
Michael E2's user avatar
  • 245k
5 votes

Generating Meshes with Conforming Boundaries for FEM

Let b1, b2 map the unit circle to the inner, outer boundaries respectively. You might need to handle a list of points with Map (e.g., b1 /@ bdy) depending on b1 and b2. Then here is a simple way: N …
Michael E2's user avatar
  • 245k
7 votes

How to specify the plot region for ListPlot3D?

Here's one way. Note NDSolve would have returned an ElementMeshInterpolation, so some of these steps should be unnecessary in your use-case. Needs["NDSolve`FEM`"]; cp = CountryData["China", "Polygo …
Michael E2's user avatar
  • 245k
7 votes

How to create an ElementMesh of a Sphere

Perhaps this is what you want: The only trick is scaling the coordinates of each point to lie on the sphere inscribed in the cube symmetric about the origin circumscribing the point. cube = ToElemen …
Michael E2's user avatar
  • 245k
1 vote

Invalid region for small angles. To Element Mesh. Finite element method

It can sometimes help out if you Reduce your implicit description of the region first. ToElementMesh[ ImplicitRegion[! (x^2 + y^2 > RLiner^2 && x^2 + y^2 < RRib^2 && 0 < y < x*Tan[Theta2] …
Michael E2's user avatar
  • 245k
1 vote

Finding eigenvalues for Laplacian operator for 3D shape with Neumann boundary conditions

As shown in the docs for NDEigensystem, the proper way to specify a homogeneous boundary condition with NeumannValue is to add it to the linear operator (only homogeneous boundary conditions are suppo …
Michael E2's user avatar
  • 245k
4 votes
Accepted

How to interpolate between InterpolatingFunction objects

If the FEM method suggested by @user21 does not work, here is one way to interpolate between the line solutions. Since you've got lines in terms of the global variable t, we have to take some care wi …
Michael E2's user avatar
  • 245k

1
2 3 4 5 6
15 30 50 per page