Field Expression Examples

The following sections provide examples of how field expressions can be used to solve a specific problem.

You can use field expressions in structures, fluids, and additive manufacturing apps.

This page discusses:

See Also
About Field Expressions
Using Field Expressions

Structures Domain Expressions

The following example shows a projectile and plate model. In the Field Expression Manager, the valid expression below ($$V.magnitude+10m/s) offsets the observed velocity vector by 10 m/s:

This calculation can be useful in simulations in which a global reference frame refers to a moving reference frame.

In this next example, you can use operators to calculate the difference in the equivalent plastic strain between different steps and frames:

In the example above, the field expression calculates the delta (difference) in equivalent plastic strain between Frame 12 and Frame 7:

          Frame_12_PEEQ=frame($PEEQ,-1,12)
          Frame_7_PEEQ=frame($PEEQ,-1,7)
          Delta_PEEQ=frame_12_PEEQ-$frame_7_PEEQ
        

A third example illustrates the use of the Goodman relation, an equation used to measure the fatigue life of a material. The Goodman relation is a linear curve that quantifies the interaction of mean and alternating stresses on the material before failure occurs. As the mean stress increases the fatigue life decreases. This relation can be plotted to determine the safe cyclic loading of a part, with coordinates below the line indicating survival of the part, and coordinates above the line indicating failure of the part.

In this simulation, you can create stress results for each of two load cases and then determine the mean stress and stress amplitude:

          Run Loadcase 1 -> create stress results 1 
Run Loadcase 2 -> create stress results 2
Mean stress = (results 1 – results 2)/2
Stress Amplitude = (results 1-results 2)
        

Finally, you can plot the results of the Goodman relation as:

(Mean stress/Fatigue
      stress limit) + (stress amplitude/UTS)
where Fatigue stress limit and UTS are constant values (material properties).

The Field Expression Manager below shows the application of the Goodman Equation to a model.

For the second and third entry of the Field Expression Manager, Load_case_1_Stress and Load_case_2_Stress, the .mises is the Stress component of the equation. The following numbers 1,2,1 and 1,2,2, respectively, indicate the Step_ID, Frame number, and Load case number.

Fluids Domain Expressions

The following field expressions can be helpful for fluids analyses:

  • 0.5*($DENSITY)*($$V.magnitude)*($$V.magnitude)+$PRESSUREGAU: The total pressure.
  • uniformity($$V.magnitude): The velocity uniformity index.
  • $PRESSUREGAU/(0.5*1.205*22.22**2): The static pressure coefficient.

The total pressure loss describes the loss of energy required by a higher energy demand. Engineering designs that provide the least total pressure are preferred.

The total pressure loss is measured by subtracting the total pressure at the outlet from the total pressure at the inlet, and uses the following field expression syntax for the total pressure, 0.5*($DENSITY)*($$V.magnitude)*($$V.magnitude)+$PRESSUREGAU:

The velocity uniformity index measures the differences between the meassured velocity on faces (outlets) and the average value. It is an indicator of how uniform the flow is. A velocity uniformity index close to 1 indicates perfect uniform flow (messured fluid velocities very close to the average value).

The static pressure coefficient is the static gauge pressure non-dimensionalized by the free-stream dynamic pressure. In a static pressure coefficient plot, such as in this drone, a red region corresponds to a stagnation zone where the pressure is greater than atmospheric.

Likewise, a blue region corresponds to a suction zone where the pressure is less than atmospheric. Therefore, you can infer that a forward facing stagnation zone and a rear facing suction zone contribute to drag.

𝐢𝑝𝑠 = 𝑝𝑠 / (0.5*πœŒβˆžπ‘‰2∞)

The static pressure coefficient, $PRESSUREGAU/(0.5*1.205*22.22**2), where 𝑝𝑠 is the static gauge pressure, π‘βˆž is the free-stream density of the fluid, and 𝑉 is the magnitude of the free-stream fluid velocity can be expressed in the Field Expression Manager as follows:

Similarly, you can derive the total pressure coefficient from the total pressure (the sum of the static gauge pressure and the dynamic pressure) non-dimensionalized by the free-stream dynamic pressure:

𝐢𝑝𝑑 =(𝑝𝑠+1/2πœŒπ‘‰2)/(0.5*πœŒβˆžπ‘‰2∞ )

The total pressure coefficient, ((0.5*1.205*$$V.magnitude*$$V.magnitude)+$PRESSUREGAU)/(0.5*1.205*22.22**2), where 𝑝𝑠 is the static gauge pressure, 𝜌∞ is the free-stream density of the fluid, π‘‰βˆž is the magnitude of the free-stream fluid velocity, 𝑝 is the density of the fluid, and 𝑉 is the magnitude of the fluid velocity can also expressed in the Field Expression Manager.