Homepage | About EASA | Contact
Estimated completion time = 60 minutes.
In this second practical session, you will create the new EASAP, set its properties, and create some data entry objects. At the end of this session, your EASAP will look like the sample shown below.
Please follow the instructions below to complete this practical session. Detailed information on the objects created in this session can be found at the Author's Pages.
The first task is to create a new EASAP within EASA.
tutorial_files2.zip
In the New Application wizard, set some properties in PROPERTIES→APPLICATION for our EASAP:
You can control which Categories (rather like folders) in which your EASAP be will accessible for Users.
Note: Optionally, you can select an Image such as plate.gif
, included with this tutorial, and a brief description such as: ‘This application performs a loading analysis on a rectangular plate having a variable thickness, length and width. The displacement of the plate is predicted for a user defined load’.
Both the image and the description will be visible to Users once you publish your EASAP.
In this tutorial we will build a fully functioning application using iterations of the two-step EASA design process:
There will be no coding involved.
Next we’ll upload the files required by the EASAP. When uploaded, these files are copied from your computer to the EASA Server and stored in the development folder for the EASAP. This folder contains the single, centralized definition of the EASAP, which once published will be used by all users of the EASAP.
logo.jpg
, material.txt
and load2.gif
by selecting them with the 'Control' key held down. Then click Open and then Upload. The files will be added to the list of current files shown below the Browse and Upload buttons.
Note: The Save button is enabled only when you have unsaved changes. Upon saving the EASAP settings, the button will be disabled or grayed out until you make another change.
You are now ready to proceed with adding data entry objects to the user interface of your EASAP.
Now you will start to add data entry objects to the user interface of your EASAP. On this TABBED PANE you will allow users to choose a plate material and specify its dimensions.
Parameter Name | Parameter Value |
---|---|
Border: | Plate Dimensions |
Parameter Name | Parameter Value |
---|---|
Default: | 1.0 |
Label: | Width (ft) |
Input Type: | Number |
Decimal Places: | 2 |
Parameter Name | Parameter Value |
---|---|
Allow: | Decimal |
Ignore Blank: | TRUE |
Data: | Between |
Minimum: | 0.1 |
Maximum: | 50 |
Create two more INPUTBOX's:
Parameter Name | Parameter Value |
---|---|
Label: | Length (ft) |
Parameter Name | Parameter Value |
---|---|
Minimum: | 0.2* input_W |
Maximum: | 5* input_W |
Parameter Name | Parameter Value |
---|---|
Default: | 0.24 |
Label: | Thickness (in) |
Parameter Name | Parameter Value |
---|---|
Minimum: | 0.001*(input_W+input_L)/2 |
Maximum: | 0.125*(input_W+input_L) |
Note: Object names are case sensitive; note the lower case ‘t’ above. Generally EASAP Authors use lowercase names for objects, while capitalized or ALL CAPS are used for built-in objects in the tree as well as object types (ie. class names).
At this point you will need to perform some data processing before adding any more data entry objects.
Now add unit conversion to our INPUTBOX values:
Parameter Name | Parameter Value |
---|---|
Value: | input_W[ft] |
Unit Group: | Length |
Parameter Name | Parameter Value |
---|---|
Value: | input_L[ft] |
Unit Group: | Length |
Parameter Name | Parameter Value |
---|---|
Value: | input_t[in] |
Unit Group: | Length |
Now we extract material property data out of the material.txt
file to be used when users select the plate material. First create an EXTRACT within the material_data branch:
material.txt
In order to help in the creation of the Extract, Find, and Repeat objects there is a Extract Tool available on the right click menu.
The following window appears:
From here you will set up a repeating find to pull out the desired data.
Now we set up a repeating find to pull out the desired data.
The Set Repeat Parameters window opens.
Now we add functionality for the User to select the plate material.
Parameter Name | Parameter Value |
---|---|
Border: | Plate Material |
Parameter Name | Parameter Value |
---|---|
Default: | Steel |
Label: | Select material |
Tool Tip: | Select plate material from list |
Input Type: | Text |
Parameter Name | Parameter Value |
---|---|
Allow: | List |
Source: | %matname% |
At this point you will need to perform some additional data processing to complete this TABBED PANE. We will use a MAP to store and retrieve the modulus of elasticity for each choice of material.
Parameter Name | Parameter Value |
---|---|
Value: | mat |
Inputs: | %matname% |
Outputs: | %Ein% |
Create a similar MAP for the material’s Poisson ratio.
Parameter Name | Parameter Value |
---|---|
Outputs: | %muin% |
Now we are ready to display the physical property values of the selected material.
Parameter Name | Parameter Value |
---|---|
Default: | modulus |
Label: | Modulus of Elasticity [ksi] |
Input Type: | Number |
Enable if: | false |
Parameter Name | Parameter Value |
---|---|
Default: | poisson |
Label: | Poisson Ratio |
Input Type: | Number |
Enable if: | false |
Decimal Places: | 3 |
Now we will add an EVENT PROCESSING to ensure that showE and showMu cannot be altered.
Parameter Name | Parameter Value |
---|---|
Objects: | mat |
Parameter Name | Parameter Value |
---|---|
Object: | showE |
Value: | modulus |
Parameter Name | Parameter Value |
---|---|
Object: | showMu |
Value: | poisson |
Check your work. At this point, the EASAP tree should look like this:
After clicking on the Test Web Browser button (), the EASAP should look like this:
You can also check on the material selection functionality by selecting different materials and observing the property values change
Parameter Name | Parameter Value |
---|---|
Tab: | 2. Edge Support Conditions |
On this second TABBED PANE you will create data entry objects to allow users to specify the support conditions for each of the plate’s four edges.
Parameter Name | Parameter Value |
---|---|
Label: | Minimum Support Requirements |
Text: | The edge supports must contain at least one Fixed edge or two Pinned edges. |
Height: | 60, pixel |
Note: A TEXTAREA is used here in order to show the message. A LABEL could be used instead.
Note: The Spell checker does not check all parameters. It checks a predefined subset of all the parameters whose values might be visible to a user.
Parameter Name | Parameter Value |
---|---|
Choices: | Free, Pinned, Fixed |
Default: | Free |
Label: | Bottom edge |
Select Mode: | SINGLE SELECT RADIO BUTTON |
Orientation: | HORIZONTAL |
Tool Tip: | Set support condition for this edge |
Three new SUB PANES will appear.
Now create an error check to make sure a user does not submit a case in which the plate is not properly supported.
Parameter Name | Parameter Value |
---|---|
Title: | Edge Support Error |
Error Message: | Plate not properly supported. The edge supports must contain at least one Fixed edge or two Pinned edges. |
Type: | ERROR_MESSAGE |
Show if: | (bottom!="Fixed"&&top!="Fixed"&&left!="Fixed"&&right!="Fixed")&&!(bottom=="Pinned"&&top=="Pinned")&&!(left=="Pinned"&&right=="Pinned") |
Note: The expression in the Show if: parameter checks whether one of the four edges has been set equal to 2, or Fixed, or whether any two edges have been set equal to 1, or Pinned. The above text must be typed, cut and paste from the tutorial will fail.
At this point the EASAP Tree should look like this:
After clicking on the Test Web Browser button (
), the second TABBED PANE should look like this:
Note: The reason you may get a number within parentheses after your EASAP title is that EASA automatically adds this number in order to keep the title unique. Therefore, if another EASAP already exists with the name ‘Rectangular Plate’ then the number will be added to your EASAP’s title
Congratulations. You have finished Practical Session 1.