In this tutorial we will learn how to simulate the effects of a 100 kN/m^2 force on a simple 3D steel cantilever beam. We will analyse the displacement and stress in the beam.
You will learn:
- The Basic Simulation Workflow in OnScale Designer
- How to set up a 3D model
- How to create a simple geometry
- How to perform static analysis
- How to display and post-process your results
Model Definition
Characteristics of the model
Model: |
Steel Beam of Dimensions 100 mm x 20 mm x 10 mm |
Mesh Size: |
1 mm |
Simulation Iterations (Conjugate Gradient Method): |
1000 iterations |
Output Results: |
-Time History of Z Displacement at [100,10,9.9] -Data Snapshot of Z Displacement -Data Snapshot of Stress XX |
Material Data
Name | Mild Steel, Generic |
Code Name | steel |
Density | 7,900 kg.m-3 |
Bulk Velocity | 5,900 ms-1 |
Shear Velocity | 3,200 ms-1 |
Why This Simulation?
In real life, steel beams are used in many different structures. It is important to be able to simulate the strain and displacement of these beams when forces are applied to them to ensure they do not buckle.
In this simulation we will apply a 100 kN/m^2 force to the top end of a beam while fixing the opposite end and observe the deformation of the beam.
Step by Step Tutorial in Video
Here's the tutorial recorded in video:
Note: The Designer interface has changed slightly since this video was recorded. The text that follows has been updated to reflect the interface changes.
The procedure is detailed in text after that:
The Simulation Process
Let's go through the step by step tutorial and see how to simulate this Simple Beam in OnScale!
Note: You can click on the images in the tutorial to make them bigger.
Step 1 - Create a New Project
Open up OnScale in Designer Mode. The first step is to create a new project.
- In the Home tab of the ribbon, click New Project. The New Project window shows.
- Type a name for the project.
- If desired, change the save location and/or project file name by clicking … beside Project File.
- For Analysis, select Mechanical Static.
- Select the Advanced checkbox.
- For Distance, select mm.
- Click OK.
Step 2 - Add the Materials from the Material DB
The second step is to add the material steel to the project materials to be used for the beam.
- Click Project Materials icon to open the Material Database
- Expand the 'Metal' materials dropdown
- Add steel (double click to add the material)
- Select Done
Step 3 - Create the Beam Geometry
We will make use of the geometric primitives to build the beam. This beam is going to be a 100x20x10 mm cuboid so the cuboid primitive shape can be used. Click on the cuboid primitive in the application's ribbon to create this shape.
- Set the Material property of primitive_1 to 'steel'
- Set the X End (mm) property to 100
- Set the Y End (mm) property to 20
- Set the Z End (mm) property to 10
- Right click in the workspace and select Reset View to snap the view to the geometry
Note: You can also assign materials by right-clicking the part in the Model Tree and selecting Assign Material.
Step 4 - Define a Static Function
The next step is to add a static forcing function of value 100 kN/m^2.
- Expand Forcing Functions in the Model Tree
- Click '+' to open the Static Function dialogue
- Set Amplitude to 100,000
Step 5 - Choose The Right Mesh Size
It is time to set up the meshing of the model. Since this beam is a simple structure we can mesh coarsely.
- Expand Model and Mesh in the Model Tree
- Select Configuration
- Set Mesh Definition to Coarse
Step 6 - Create The Force Load
We will now apply a 100 kN force load to the tip of the beam acting in the Z direction. First we must create the load.
- In the Model Tree, expand Boundary Conditions and then, beside Loads, click +.
- For Creation Mode, select Geometry Interface.
- For Geometry, select primitive_1 (steel) or click it in the model.
- For Interfacing Item, select side_6 (zmax).
- For Load Type, select Force.
- Under Scale, for Z type -1.
- Click Create Load.
Note: Force loads adds a force to the part of the model. They must be defined using the name of the forcing function to use, the scale factors which represent the magnitude and direction of the force, and interface definition which describes which material interface the load has to be applied to.
Let's now set the interface definition. With load_1 selected in the Model Tree, do the following in the Properties window:
- Expand Interface Definition.
- For Minimum (mm) > X (mm), type 90.
- For Maximum (mm) > X (mm), type 100.
- For Maximum (mm) > Y (mm), type 20.
- For Maximum (mm) > Z (mm), type 10.
Step 7 - Define the Boundary Conditions
We need to set the boundary conditions so that one side of the beam is fixed.
- Click Domain Boundaries in the Model Tree
- Expand X Minimum
- Set X Minimum to Fixed
- Expand X Maximum
- Set X Maximum to Free
- Expand Y Minimum
- Set Y Minimum to Free
- Expand Y Maximum
- Set Y Maximum to Free
- Expand Z Minimum
- Set Z Minimum to Free
- Expand Z Maximum
- Set Z Maximum to Free
Step 8 - Define the Simulation Output Results
We will now define 3 outputs, a time history of the displacement at the tip of the beam, the Z displacement of the beam and the stress in the beam.
Output Result 1 : Time History Graph of Displacement at (100,10,9.9)
- Click '+' to create a new output
- Set Output Type to Time History
- Set Array Type to Displacement
- Set Array Component to Z
- Expand Location
- Set X Location to 100
- Set Y Location to 10
- Set Z Location to 9.9
Output Result 2 : Data Snapshot of Z Displacement
- Click '+' to create a new output
- Set Output Type to Data Snapshot
- Set Array Type to Displacement
- Set Array Component to Z
Output Result 3 : Data Snapshot of XX Stress
- Set Output Type to Data Snapshot
- Set Array Type to Stress
- Set Array Component to XX
Note: In OnScale, you have to define which results you want to see out of this model before it is run. This is done mainly to decrease the amount of memory required and only output what is required and this also decreases the amount of data that is required to be downloaded from the cloud, so choose wisely what you want to get from your model!
Step 9 - Run the Simulation on the Cloud
At this point the model is completely set up and it can now be run on the cloud.
- Click Run on Cloud
- Select Estimate
- Select Run
How does the "Estimator" works? The Estimator, like its name indicates, performs one step of the simulation and provides an estimation of the Model Solve Time. This estimation is done with complex algorithms and a lot of simulation experience. This then allows the user to choose how many Cores they wish to use for the simulation. More Cores will speed up the completion time of your model.
What are Core Hours? A Core-Hour is a measurement of computational time. In OnScale, if you run one CPU for one hour, that's one Core-Hour. If you run 1000 CPUs for 1 hour, then that's 1000 Core-Hours. More details here.
How to Get the Simulation Results?
Once the simulation has finished, the results are available in your storage to download.
- Click the Storage icon to open the cloud storage
- Select your job from the dropdown menu
- Expand the simulation folder
- CTRL + select the flxdato & flxhst file, right click and select Download Selection
Choose an appropriate save location and close the cloud storage.
Step 10 - Check the Simulation Results
Switch to the Post Processor
Click this icon to access the Post Processor to analyse simulation results
Note: Post Processor is a mode in OnScale where you can review and process results calculated during simulations.
Open Results
- Click File Explorer
- Select the folder icon and choose the directory you saved your results to
- Double click the history file to open the field history results
- Double click the data out file to open the time data results
Plot Time History (Z Displacement at Tip of Beam)
Note: Time Histories are output types which allow users to monitor the results at a specific point in a model.
- Double click 'zdsp' to plot displacement time history
- Set Plot Title to 'Z Displacement at Tip of Beam '
- Set X-Axis Label to 'Iterations'
- Set Y-Axis Label to 'Displacement (m)'
Plot Data Snapshots
Important: Snapshot results are the way in OnScale to obtain the full model data at every node or element at a snapshot in time.
Stress
- Double click 'sgxx'
- Select Deformed Plot icon
- Reorientate axis to XZ
Z Displacement
- Expand 'Dspl'
- Double click 'z'
- Select Deformed Plot icon
Try for yourself
Now that we have introduced you to the tutorial, try have a play around with some of the settings, add some other outputs, or use this model as a starting point of your own.