Questions tagged [finite-element-analysis]

Anything related to finite element analysis or finite element methods (FEMs), i.e. a number of advanced numerical analysis techniques for finding approximate solutions of differential equations. FEMs are heavily used in many branches of engineering, for example to simplify the design phase of a project.

The methods transform the differential equation into a weak form over the problem domain, which is then discretized by a set of elements (e.g. a triangle-shaped plate or quadrilateral shells). This allows for a per-element approximation of the solution and an assembly of global quantities by local quadrature rules, resulting in a possibly nonlinear system of equations. For large problem statements, finding a solution might require parallel computing strategies.

Many areas of engineering profit from these techniques, e.g. solid and structural mechanics on various time- and size-scales, electrical field theory or diffusion problems, and there are plenty of (free) software solutions available. In scientific computing, users regularly need to extend the method by custom element formulations or new solution procedures, which is often done in fortran, c++ or python.

See also the Wikipedia page on FEMs.

235 questions
0
votes
2 answers

Compiling a C++ code including PETSc libraries. make: No rule to make target error message

I am interested in using the open source code discussed here. The framework and some instruction on how to run the code is discussed here. To be able to use the code one should first install PETSc. I have done this and it seems to be correctly…
Dude
  • 191
  • 3
  • 12
0
votes
0 answers

Interface in finite element

I am solving the steady state heat equation with linear finite element and siplex triangular element. The domain is divided into two subdomains and they have different conductivity, let say conductivity is k=0.2 for the first subdomain and 0.1 for…
user15486818
0
votes
1 answer

How to determine neighboring elements from a 1D array?

I am working on a Finite element analysis code and I currently have 1D array listing the element density values like so: x = np.ones(12) where the index is the element number 0, 1, 2, ..., 10, 11 The elements when plotted are like so: 0 - 3 - 6 -…
0
votes
1 answer

How to use e.findAt for similar geometrical models?

I used Abaqus macro recording when defining a set: by edge (20 deg). My end goal is to run the script for different .STEP models/geometries which are identical in every aspect except for a few parametric values. For each model I am using the same…
0
votes
1 answer

How to solve a system of polynomial equations in python of degree 15

Is there a simply way of solving large arrays of polynomial equations in Python? I have to solve 16 equations that look like: W1*(P1^0) + W2*(P2^0) + ... + W8*(P8^0) = 2/1 W1*(P1^1) + W2*(P2^1) + ... + W8*(P8^1) = 0 W1*(P1^2) + W2*(P2^2) +…
0
votes
1 answer

Where is IPython.frontend.terminal.embed package for Anaconda3?

I have pulled the source code for SfePy from GitHub with the objective of building and running it locally. I'm running on Ubuntu 20.10 using Anaconda3. I have PyCharm 2020.2 from Jetbrains as my IDE. When I bring the code into PyCharm I see several…
duffymo
  • 305,152
  • 44
  • 369
  • 561
0
votes
1 answer

Matplotlib.triangulation vertices for each triangle

I have a list of x and y coordinates and used those to create an irregular triangular grid by calling tr=tri.Triangulation(a, b, triangles=None, mask=None), where a is the list of x-coordinates and b is a list of y-coordinates. I was able to get a…
0
votes
1 answer

Finite-element preprocessors

Good afternoon, I'm working on a personal project to develop a Finite Element package tool for composite laminate materials. I would like to know which open source options are out there to do pre-processing and large sparce matrix assembling for…
0
votes
1 answer

installation error for matplotlib and Getfem to Python 3.9.0 using pip command

error for matplotlib: ERROR: Command errored out with exit status 1: command: 'c:\users\dell\appdata\local\programs\python\python39\python.exe' -c 'import sys, setuptools, tokenize; sys.argv[0] =…
0
votes
1 answer

How to define the nodes and elements in ABAQUS input file?

I have edited an ABAQUS input file generated from the maple code written to create a 3D model for analysis. The input file is missing the nodes and element definitions. Can someone give me some example on how to edit the following code to input the…
0
votes
1 answer

Multiple sub-regions in FreeFem

I am using FreeFem++ to solve the Poisson equation over a complicated geometry. I want to solve it over a heterogeneous region. The value of f in ΔΦ=f changes between multiple sub-regions. Is there any way to do this? So far I have found only…
user32335
  • 1
  • 1
0
votes
1 answer

Processes read data from the same file

I have a mesh file and I did a partitioning of it using METIS(in 4 parts/processes).METIS provided me with the partitioning file of the mesh(gave me a file with the number of process where each element of the mesh belongs to).My job now is to input…
0
votes
0 answers

Finite Element assembly

I'm having serious problems in a simple example of fem assembly. I just want to assemble the Mass matrix without any coefficient. The geometry is simple: conn=[1, 2, 3]; p = [0 0; 1 0; 0 1]; I made it like this so that the physical element will be…
Cla
  • 171
  • 1
  • 12
0
votes
0 answers

c++ FEM libraries that implement 3D elastic membrane elements

I need to incorporate a structural FEM solver in to my C++ code base. Specifically, I am solving a 3D surface mesh problem, and I need a 3D elastic membrane element, whose is parameterized by thickness and structural material properties. If possible…
AmirB
  • 133
  • 6
0
votes
0 answers

Shape function for B21 (Timoshenko beam) element in Abaqus

I am wondering what are the appropriate shape/interpolation functions for the B21 element since it has 3 DoF per node, but is stated as linear interpolation element. Update: (as per duffymo's comment) I know there is a distinction between nodal DoF…