Defining Boundary Condition Magnitude

This section describes the methods you can use to define the magnitude of a boundary condition. Mechanical enables you to define a load value or magnitude as a:

In addition, you can import and export load histories.


Note:  Changing the method of how a multiple-step load value is specified (such as Tabular to Constant), the Activation/Deactivation state of all steps resets to the default, Active.


Support Limitations

Constant Magnitude Values

Once you have scoped the geometry for your boundary condition, generally, the Magnitude option defaults to the Constant setting and you can simply enter your desired magnitude value in the field.

As discussed below, you can also define constant values as expressions.

Constant Magnitude Expressions

The Magnitude field defaults to the option Constant. Expressions are simply typed into the field. The expression is evaluated and applied.

For example and as illustrated, entering the expression =2 + (3 * 5) + pow(2,3) in English in the numeric field is evaluated as a Magnitude of 25.

The equal sign [=] must be used to begin an expression. Additional operators include: +, -, *, /, ^ (for power) and % (integer Modulus). Operator examples are shown here:

2+3
10.5-2.5
3.5*3.3
10.12/1.89
2^10
10%3
2*(3+5)

The order of operator precedence is:

parentheses
intrinsic functions (like sin or cos)
power (^)
multiplication (*), division (/) and integer modulus (%)
addition (+) and subtraction (-)


Note:  If the decimal separator in the current language is a comma (,) as it is in German, then the separator for the list of parameters of a function is a semicolon (;).

For example, if an English expression is =2.5 + pow (1.3, 6), the equivalent German expression is =2,5 + pow (1.3; 6).


The supported intrinsic functions are:

Supported Intrinsic FunctionsSample UsageUsage (angles in current Mechanical units setting)
sin(x)sin(3.1415926535/2)Calculate sines and hyperbolic sines.
sinh(x)sinh(3.1415926535/2)
cos(x)cos(3.1415926535/2)Calculate the cosine (cos) or hyperbolic cosine (cosh).
cosh(x)cosh(3.1415926535/2)
tan(x)tan(3.1415926535/4)Calculate the tangent (tan) or hyperbolic tangent (tanh).
tanhtanh(1.000000)
asin(x)asin(0.326960)Calculates the arcsine. (x - Value whose arcsine is to be calculated).
acos(x)acos(0.326960)Calculates the arccosine. (x - Value between –1 and 1 whose arccosine is to be calculated).
atan(x)atan(-862.42)Calculates the arctangent of x (atan) or the arctangent of y/x (atan2). (x,y Any numbers).
atan2(y,x)atan2(-862.420000,78.514900)
pow(x,y)pow(2.0,3.0)Calculates x raised to the power of y. (x – Base y - Exponent).
sqrt(x)sqrt(45.35)Calculates the square root. (x should be a Nonnegative value).
exp(x)exp(2.302585093)Calculates the exponential. (x - Floating-point value).
log(x)log(9000.00)Calculates the natural logarithm. (x - Value whose logarithm is to be found).
log10(x)log10(9000.00)Calculates the common logarithm. (x - Value whose logarithm is to be found).
rand()rand()Generates a pseudorandom number.
ceil(x)ceil(2.8)Calculates the ceiling of a value. It returns a floating-point value representing the smallest integer that is greater than or equal to x. (x - Floating-point value).
ceil(-2.8)
floor(x)floor(2.8)Calculates the floor of a value. It returns a floating-point value representing the largest integer that is less than or equal to x. (x - Floating-point value).
floor(-2.8)
fmod(x,y)fmod(-10.0, 3.0)Calculates the floating-point remainder. The fmod function calculates the floating-point remainder f of x / y such that x = i * y + f, where i is an integer, f has the same sign as x, and the absolute value of f is less than the absolute value of y. (x,y - Floating-point values).

You can also enter hexadecimal (starting with 0x) and octal (starting with &) numbers, for example 0x12 and &12.

Tabular Loads

Tabular data is most often entered using the Magnitude property of the boundary condition. The Distance property is also an option for Displacements. As illustrated below, from the appropriate property in the Details view, open the fly-out menu and select Tabular.

Based on your analysis system, enter the appropriate data in the Tabular Data window (pressure, force, frequency, etc). The Graph window displays the variation of the load with time for Static and Transient analysis systems or frequency for Harmonic analysis systems.

For varying loads, annotations in the Geometry window display the current time in the Graph window along with the load value at that time. Tabular Loads allow up to 100,000 entries. For frequency varying loads, annotations in the Geometry window displays the minimum range of harmonic frequency sweep and load value of first frequency entry.


Note:
  • All new data is entered into the row that begins with an asterisk (*) regardless of whether the time or frequency point is higher or lower than the last defined point in the table. The application automatically sorts the content of the table into ascending order.

  • Any Tabular Data values preceded by an equal sign (=) are not defined table values. These values are application interpolated values shown for reference.


Spatial Load Tabular Data

When using spatial varying loads, selecting Tabular as the input option displays the Tabular Data category and based on the entry of the Tabular Data category, the Graph Controls category may also display.

The Tabular Data category provides the following options:

Independent Variable

The Independent Variable property specifies how the load varies with either Time (default), load Step (Static Structural only), or in the X, Y, or Z spatial direction. For a Harmonic Response analysis the default setting is Frequency. And, for certain temperature-based loads, you can select Temperature as the Independent Variable.


Note:
  • The application typically writes loading values to the input file as a table of values. When you set the Independent Variable property to Step, the application instead writes a constant load value for each load step.

  • For a Pressure load, the Define By property must be set to Normal To.

  • The option Normalized S becomes available for Line Pressure loads in a 3D analysis when the Define By property is set to Tangential or Pressure loads in a 2D analysis when the Define By property is set to Normal To.

    The Normalized S option enables you to define pressure as a function of the distance along a path whose length is denoted by S. When you select the Normalized S variable, the Tabular Data window accepts input data in the form of normalized values of path length (Normalized S) and corresponding Pressure values. A path length of 0 denotes the start of the path and a 1 denotes the end of the path. Any intermediate values between 0 and 1 are acceptable in the table. Load values are sent to the solver for each element on the defined path based on a first-order approximation.


Coordinate System

The Coordinate System property displays if you specify the Independent Variable in a spatial direction (X, Y, or Z). Use this property to specify a coordinate system.

Graph Controls

The Graph Controls category displays when you define the Independent Variable as a spatial direction (X, Y, or Z), as Normalized S, or as Temperature. This category provides the property X-Axis which you use to change the Graph window's display. The options of the X-Axis property vary based upon analysis type and the selection made for the Independent Variable property. Options may include Time, or the spatial direction specified, or Temperature.

  • When the X-Axis property is defined as Time:

    • Tabular Data content can be Scaled against time.

    • You can Activate and/or Deactivate the load at a solution load step.

    • If Time is not an available option of the X-Axis option, then scaling or activation/deactivation are not possible for the boundary condition.

Function Loads

For entering a mathematical function, click the flyout arrow in the input field (for example, Magnitude), choose Function, then type a function such as =1000*sin(10*time). Any time values that you are evaluating can exceed the final time value by as much as one time step. The Graph window displays the variation of the load with time. Annotations in the Geometry window display the current time in the Graph window along with the load value at that time. The following functions are supported: sin, cos, tan, asin, acos, atan, atan2, log, log10, exp, pow, and sqrt.

Spatial Load and Displacement Function Data

When using spatial varying loads or displacements, selecting Function as the input option in the Details view presents an editable function field. Enter a mathematical expression in this field. Expressions have the following requirements:

When the Details view property Magnitude is set to Function, the following categories automatically display.

Spatial Varying Displacements

You can also apply spatial varying displacements, which have the following additional or unique characteristics:

Direction

There are four types of Direction:

Planar Face
Edge
Cylindrical Face or Geometric Axis
Two Vertices

Planar Face

  Selected planar face. The load is directed normal to the face.


Note:  Not applicable to Rotational Velocity or Rotational Acceleration. These objects are aligned along the normal to a planar face and along the axis of a cylindrical face.


Edge

Straight

Colinear to the edge

Circular or Elliptical

Normal to the plane containing the edge

  Selected straight edge

Cylindrical Face or Geometric Axis

Applies to cylinders, cones, tori, and cylindrical or conical fillets. For vector-based loading on a cylindrical face or geometric axis, you define the radial direction by selecting a different piece of geometry on your model that allows you to modify the Direction in the desired direction.

  Selected cylinder

Two Vertices

  2 selected vertices


Note:  Hold the CTRL key to select the second vertex.


Loads that require you to define an associated direction include the Define By Details view control. Setting Define By to Vector allows you to define the direction graphically, based on the selected geometry. Setting Define By to Components allows you to define the direction by specifying the x, y, and z magnitude components of the load.


Note:  If you switch the load direction setting in the Define By field, the data is lost.


Importing Load History

To import a load history from a library:
  1. Select the appropriate geometry on the model and do one of the following:

    • Click on the appropriate icon on the toolbar and choose the load.

    OR...

    • Click right mouse button, select Insert, and choose the load.

  2. Go to the Details view and in the input field, such as the Magnitude field, click the flyout field and choose Import. Note that the Import feature can present different dependencies, such as time and temperature.

    Choose the desired load history if it is listed, then click OK. If it is not listed, click the Add button, choose a load history or Browse to one that is stored, then click OK in both dialog boxes.

Exporting Load History

To export a load history:

By default, any load history that you create in the application remains in the application. To save the load history for future use:

  1. Create a load history using the Graph or Tabular Data windows.

  2. Go to the Details view and in the input field, such as the Magnitude field, click the flyout field, choose Export, and save the file to a specific location.


Release 18.2 - © ANSYS, Inc. All rights reserved.