Questions tagged [opencascade]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
3 votes
2 answers
135 views

BoundaryMeshRegion Error: Boundary surface is not closed

I am trying to create a BoundaryMeshRegion comprised of many cubes with random locations, in a relatively small region. I have had success implementing my technique for a smaller number of cubes (say,...
user avatar
  • 353
4 votes
1 answer
48 views

Package AceFEM error: cannot be automatically installed

I have a problem to perform the package AceFEM in Mathematica 12.0.0.0 for Mac (software: macOS Monterey Version 12.4 | processor: 1,8 GHz Dual-Core Intel Core i5). I downloaded the newest AceGen and ...
user avatar
4 votes
1 answer
70 views

3D Mesh refinement near sphere boundary and on surface revolutions

I am trying to solve an advection-diffusion problem inside surface of revolutions. I have high velocity gradients near the boundary of the bounding surface. Is there a way to refine the mesh near the ...
user avatar
  • 75
7 votes
3 answers
403 views

STL generation for Ball-in-a-maze puzzle

As a minimal example, consider: ...
user avatar
  • 16.3k
10 votes
2 answers
830 views

How can I generate a Swiss-Cheese type region and render it transparent?

I am trying to visualize a percolation model that is equivalent to a swiss-cheese where the holes are conducting. At some point, the size of the holes gets large enough for them to touch and a ...
user avatar
  • 101
7 votes
5 answers
492 views

How to graph a solid common to multiple functions

I want to be able to graph the solid that is contained by two functions. I am graphing x^2+z^2=400 and y^2+z^2=400 and this the code I used and the graph I got: ...
user avatar
  • 115
9 votes
2 answers
147 views

How to do boolean operations between a large amount of regions

I want to do boolean operations between a large amount of regions. For convenience, I consider a simplified problem. The problem is as follows, digging out a large number of small hemispheres on the ...
user avatar
  • 175
5 votes
2 answers
196 views

How to create cylinder pie using `ParametricRegion`?

I'm wondering that this simple definition of a cylinder pie doesn't work ...
user avatar
8 votes
1 answer
210 views

How to union 3D region to calculate volume?

I have a Teapot likes: region = RepairMesh[ExampleData[{"Geometry3D", "UtahTeapot"}, "MeshRegion"]] I want to calculate the volume ...
user avatar
  • 24.5k
3 votes
1 answer
139 views

What does "TetGenTetrahedralize: Tetrahedralize returned an error, 2. mean? Also error number 1,2,3...?

regioncalc5 = ToElementMesh[regioncalc4, MeshRefinementFunction -> ff] TetGenTetrahedralize: Tetrahedralize returned an error, 2.
user avatar
  • 31
2 votes
1 answer
120 views

Is there a way to SurfaceArea of each face of 3D shape separately?

Consider the following 3D shape as an example: ClearAll[cylinder]; cylinder[r_,z_]:=Cylinder[{{r,r,0},{r,r,z}},r]; It is a cylinder whose entire ...
user avatar
  • 8,377
4 votes
3 answers
358 views

How to make a high resolution mesh from RegionIntersection in 3D

I want to make a high-resolution 3d model of the Reuleaux tetrahedron by using Mathematica The Reuleaux tetrahedron is the intersection of four balls of radius s centered at the vertices of a ...
user avatar
  • 8,638
5 votes
3 answers
217 views

How to convert cuboid to mesh efficiently

cuboids = Table[Cuboid @@ (pts = RandomReal[100, {2, 3}]), {i, 10000}]; Method1: ...
user avatar
  • 8,155
4 votes
1 answer
146 views

Export Discretized ImplicitRegion as step using OpenCascade

Following the reply by @user21 to this post on exporting a region to a step file, I tried to do the same for a Discretized ImplicitRegion, but OpenCascadeShape didn't appear to work. Is there a switch ...
user avatar
  • 1,339
12 votes
4 answers
1k views

3D FEM Vector Potential

I am trying to reproduce an FEM result in a paper. Due to possible copyright I cannot show the result directly but fortunately there is a free link An Incomplete Gauge for 3D Nodal Finite Element ...
user avatar
  • 191
5 votes
2 answers
158 views

How to discretize the boundary of two regions?

Problem How to discretize a surface constructed with multiple components? Unsuccessful attempts include combining the objects top and ...
user avatar
  • 956
2 votes
1 answer
134 views

Why FEM not giving output at the boundary

I am trying to solve simple 3D Poisson's equation of thermal conduction due to heat generation (q) in a spherical composite, where from 0 to a (inner radius) conductivity is k1 and from a to b (outer ...
user avatar
  • 55
6 votes
3 answers
293 views

Balanced flux in FEA using NeumanValue

I'm using NeumannValue boundary conditions for a 3d FEA using NDSolveValue. In one area I have positive flux and in another area i have negative flux. In theory these should balance out (I set the ...
user avatar
7 votes
2 answers
900 views

Cylindrical coordinates in FEM

I am trying to solve the Stokes equation for fluid flow in a 3d cylinder. All boundaries are no-slip, apart from the top boundary, which enforces flow in the x-direction. My problem is that I can't ...
user avatar
  • 1,184
8 votes
3 answers
279 views

Raytracing using Regions & NSolve

I want to use geometric shapes in Mathematica to build complex shapes and use my raytracing algorithm on it. I have a working example where we can get the intersections from a combination of a ...
user avatar
  • 3,862
1 vote
1 answer
110 views

why on some MaxCellMeasure values, FEM gives internal 1/0 error?

V 12.1 on windows 10 When I was answering NDSolveValue taking too long I noticed the following When I use some value for MaxCellMeasure, then FEM gives 1/0. Why ...
user avatar
  • 112k
6 votes
1 answer
183 views

Define a region of revolution

My goal is to use "RegionCentroid" on a solid of revolution. This works great for 2d regions: ...
user avatar
  • 676
3 votes
2 answers
258 views

What can we expect from boolean region operations?

In my recent efforts to design some 3D printable objects, I have been tempted to use relatively recent additions to the Wolfram Language such as RegionDifference ...
user avatar
20 votes
6 answers
497 views

how to make the surface of a 3D region smooth

I want to draw this region,but the surface is rough.I tried to find options to improve the surface but failed. ...
user avatar
  • 6,827
8 votes
3 answers
232 views

Discretisation of region intersection in 3D

If I try to discretise the intersection (BoundaryDiscretizeRegion), of a shell in a cuboid, some of the regions (that are found with RegionIntersection) are lost in the discretising process. I tried ...
user avatar
86 votes
17 answers
5k views

Future enhancements for the finite element method

How should the finite element method (FEM) framework in the language be extended to be more useful? With the release of version 12.0 all fundamental FEM solvers (linear, nonlinear, stationary, ...
user avatar
  • 36.8k