Skip to article frontmatterSkip to article content
Site not loading correctly?

This may be due to an incorrect BASE_URL configuration. See the MyST Documentation for reference.

22 - Ansys Workbench and FEA

The following is a brief introduction to Ansys Workbench and Finite Element Analysis (FEA). FEA can be a very powerful tool in analyzing heat transfer and momentum transfer problems. For fluids, another name for it is Computational Fluid Dynamics (CFD). The following is a brief introduction to Ansys Workbench and Finite Element Analysis (FEA).

1D Heat Equation (Heat Conduction Down a Rod)

Steady-state Scenario

For each of the finite elements:

0=αd2Tdx20 = \alpha\frac{d^2T}{dx^2}

Equations for each element can be set and then solved using Scipy’s fsolve.

<Figure size 640x480 with 1 Axes>

Transient Scenario

For each of the finite elements:

dTdt=αd2Tdx2\frac{dT}{dt} = \alpha\frac{d^2T}{dx^2}

Equations for each element can be set and then solved using Euler’s method or with odeint. Both methods are shown below.

Eulers Method

<Figure size 800x600 with 1 Axes>

Odeint (More stable)

<Figure size 640x480 with 1 Axes>

Concentration in a Tube

What is the concentration as a function of time given a plug of gas is introduced into one end of a tube? Or in other words, if I inject methane into one end, how long do I have to wait before the entire tube has a concentration in the flammability limit? Given the ends are sealed.

<Figure size 640x480 with 1 Axes>
np.float64(6.0)
(np.float64(0.1461180240862919), np.float64(0.051208907684133914))

About 6 hours until the conentration in the entire pipe is within the flammability zone. That’s a long time, way longer than expected especially considering the speed of individual gas molecules.

First term Fourier series (from the analytical solution of the heat equation) time constant as a check:

τ=L2π2DAB\tau = \frac{L^2}{\pi^2D_{AB}}
5.117231497087767

Twice the time constant gets you to almost the full mixing which is 10 hours. You can see that the time required for smaller changes in the overall concentration gets longer.

Ansys Workbench

The above programmatic solutions are great for simple problems, but for more complex problems, it is better to use a program like Ansys Workbench. Ansys Workbench is a program that allows you to build a model and then solve it using FEA. The following video is shows a brief introduction to Ansys Workbench.

Ansys Workbench Transient Simulation