27
0682_CLOUDPYME2_1_E Salome-Meca Guía de uso plataforma CloudPYME

Presentación de PowerPoint - CloudPYMEportal.cloudpyme.eu/doc/docs/Manual de uso Salomemeca.pdf · Adapted to Salome-Meca 2014.1 on CloudPyme platform Overview Geometry module:

Embed Size (px)

Citation preview

0682_CLOUDPYME2_1_E

Salome-Meca

Guía de uso plataforma CloudPYME

0682_CLOUDPYME2_1_E

An introduction to Salome & Code_Aster:A simple linear statics analysis of a pistonBased on http://www.caelinux.org/wiki/images/7/74/Piston_tutorial.pdfAdapted to Salome-Meca 2014.1 on CloudPyme platform

OverviewGeometry module:● Import and prepare STEP file format geometry, group

creationMesh module:● Meshing geometry in preparation for FE studyAster module:● Creating a linear statics study using the wizard● Running the calculation● Viewing the run-time performance results● Viewing the result of the study

0682_CLOUDPYME2_1_E

Login on the CloudPYME platform and launch a new VM

Use the remote desktop access

0682_CLOUDPYME2_1_E

Geometry module: Importing geometry

Start SaloméMECA and select Geometry module, choose New in the dialog

0682_CLOUDPYME2_1_E

Geometry module: Importing geometry

Select menu File → ImportChoose STEP file format in the pull-down menuSelect the file piston.stp

0682_CLOUDPYME2_1_E

Geometry module: Importing geometry

A note on importing geometry: When importing geometry from e.g. SolidWorks or otherCAD packages, Salomé converts the units from[mm] to [m] to conform with the mKs SI-system – This means that if the piston was designed in SolidWorks to have a diameter of 60mm, the imported geometry will have a diameter of 0.06m – i.e. the coordinates along the e.g. x-axis will not be (0,0,0) → (60,0,0) in Salomé, but (0,0,0) → (0.06,0,0)If in doubt, check the bounding box by going to menu Measures → Dimensions →Bounding Box.

0682_CLOUDPYME2_1_E

Geometry module: Importing geometry

Click the Fit All icon in the View tool-barIf the geometry is presented as a wire-frame, click menu View → Display Mode → Shading

0682_CLOUDPYME2_1_E

Geometry module: Preparing geometry; creating groups

Expand Geometry in the object browser and right-click piston and select Create Group

Select Shape Type FaceUnder Group Name enter 'Press'Move the mouse pointer over the piston geometry and click to select the top,circular face.Once the top, circular face is selected, press Add (391), followed by Apply.The geometry group 'Press' is now created

0682_CLOUDPYME2_1_E

Geometry module: Preparing geometry; creating groups

Creating the 'Hold' groupEnter the name 'Hold' for this new groupPressing and holding CTRL while using RMB (Right Mouse Button) to rotate the piston geometry, select the two upper halves of the holes going through the piston – hold SHIFT to select two individual faces (82 and 100)Click Add, followed by Apply and Close

0682_CLOUDPYME2_1_E

Geometry module: Preparing geometry; creating groups

To make sure the correct face groups have been created, expand piston in theobject browser, select both groups (pressing and holding CTRL or SHIFT) in the objectbrowser, right-click and select Show OnlyTo return to a normal view, right-click piston and select Show Only

0682_CLOUDPYME2_1_E

Meshing the geometry

Switch to the MESH module

Click Create Mesh

Change the name from Mesh_1 to PistonUnder Geometry, make sure piston is selected, otherwise select piston in the object browser and click the blue arrow.

0682_CLOUDPYME2_1_E

Meshing the geometryMeshing the geometry

Click Assign a set of hypotheses Select 3D: Automatic TetrahedralizationClick Cancel in the dialog Hypothesis Construction – Max Length

Click the 1D tab, under Hypothesis, click the gear icon and select Automatic LengthUnder Fineness, change the value to 0.005 – click OK

Click Apply and Close

0682_CLOUDPYME2_1_E

Meshing the geometryMeshing the geometry

Expand Mesh in the Object browser, right-click the Piston mesh and select ComputeWhen the mesh is computed, close the dialog

Right-click on the Piston mesh (notice the yellow !-sign is gone) and select Convertto/from QuadraticConvert to quadratic will automatically be selectedTick Medium Nodes on geometryClick Apply and Close

0682_CLOUDPYME2_1_E

Meshing the geometryMeshing the geometry

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

Switch to the Aster moduleSwitch to the Aster moduleClick the Linear Statics Wizard iconClick the Linear Statics Wizard icon

In the following dialog 3D is automatically selected In the following dialog 3D is automatically selected – click Next– click Next

In the next dialog select the Piston mesh in the In the next dialog select the Piston mesh in the object browser under Mesh and click the blue arrowobject browser under Mesh and click the blue arrow

Use Geometrical Groups should be selected – this Use Geometrical Groups should be selected – this will import and create mesh groups created in the will import and create mesh groups created in the Geometry moduleGeometry moduleClick NextClick Next

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

In the next dialog enter a Young's Modulus (E) value of 70e9 In the next dialog enter a Young's Modulus (E) value of 70e9 (or 70000000000) and a Poisson's ration of 0.3(or 70000000000) and a Poisson's ration of 0.3MKS SI-system is used here and thus all dimensions are in MKS SI-system is used here and thus all dimensions are in meters, and pressure will be in Pascals – 70e9Pa meters, and pressure will be in Pascals – 70e9Pa corresponds to a E-module of 70GPacorresponds to a E-module of 70GPaClick NextClick Next

In the next dialog Boundary Conditions are imposed on the In the next dialog Boundary Conditions are imposed on the model:model:Double-click the the first row in the Group column, press the Double-click the the first row in the Group column, press the down-arrow and select the 'hold' groupdown-arrow and select the 'hold' groupLeave values for DX,DY and DZ at 0 and click NextLeave values for DX,DY and DZ at 0 and click Next

In the next dialog a group for applying pressure must be In the next dialog a group for applying pressure must be selectedselectedAgain, double-click the first row in the first column, pull down Again, double-click the first row in the first column, pull down the menu and select the Press groupthe menu and select the Press groupDouble-click the first row in the second column and enter a Double-click the first row in the second column and enter a pressure value of 300e3 – or 300000 and cpressure value of 300e3 – or 300000 and click Next

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

In the next dialog a name and a destination for the created command file must be In the next dialog a name and a destination for the created command file must be selectedselectedClick the file dialog buttonClick the file dialog buttonNavigate to the folder that should contain the study files and type in a name for Navigate to the folder that should contain the study files and type in a name for the command file – click Finishthe command file – click Finish

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

Expanding the Aster tree in the object browser a new study should now be Expanding the Aster tree in the object browser a new study should now be present:present:

Right-click linear-static and select EditRight-click linear-static and select Edit

A new dialog appear with 3 sections:A new dialog appear with 3 sections:

● Case study definition:Case study definition:

● ASTK servicesASTK services

● Solver parametersSolver parameters

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

ASTK ASTK servicesservices::Click on Refresh servers to get updated options about the servers present on the Click on Refresh servers to get updated options about the servers present on the CloudPYME platformCloudPYME platform

AvailableAvailable Aster versions to run with: Stable or Testing Aster versions to run with: Stable or Testing

Execution mode: Interactive (run on the VM where SALOME-MECA is running) or Execution mode: Interactive (run on the VM where SALOME-MECA is running) or batch (run on SVG cluster)batch (run on SVG cluster)

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

Solver parameters:Solver parameters:Specify the computational resources (Memory, CPUs and Time) needed to run the Specify the computational resources (Memory, CPUs and Time) needed to run the case.case.

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

Right-click linear-static and select RunRight-click linear-static and select Run

Check Message Window to see the Job status:Check Message Window to see the Job status:

After the calculation has finished, you could see a Results section under the After the calculation has finished, you could see a Results section under the linear-static study.linear-static study.

Job id under the batch system

linear-staticlinear-static.mess.mess: messages produced by : messages produced by the calculation and should be the first place the calculation and should be the first place to search for errors.to search for errors.linear-staticlinear-static.resu.resu: contains short description : contains short description of errors encountered and a detailed of errors encountered and a detailed summation of run-time performance, i.e. summation of run-time performance, i.e. how long time it took for each command to how long time it took for each command to run and overall time consumed, in this case: run and overall time consumed, in this case: *TOTAL_JOB: ELAPSED: 19.42 seconds**TOTAL_JOB: ELAPSED: 19.42 seconds*linear-staticlinear-static.rmed.rmed: contains the results to be : contains the results to be used in the ParaVis moduleused in the ParaVis module

Right-clicking each entry will Right-clicking each entry will give you options to Read as give you options to Read as Text or Edit as TextText or Edit as Text

0682_CLOUDPYME2_1_E

Aster module – Creating a study using a wizardAster module – Creating a study using a wizard

Under Astk parameters you can find all the execution parameters:Under Astk parameters you can find all the execution parameters:

Right click on the header bar and check Value

Using the qacct command on a terminal to get job accounting data

0682_CLOUDPYME2_1_E

Post processingPost processing

Switch to the ParaVis moduleSwitch to the ParaVis module

Open the rmed file:Open the rmed file:

Click ApplyClick Apply

0682_CLOUDPYME2_1_E

Post processingPost processing

0682_CLOUDPYME2_1_E

Post processingPost processing

Displacement / Deformation:Displacement / Deformation:Switch to the Display tab. Select Color by RESE_DEPLSwitch to the Display tab. Select Color by RESE_DEPL

Toggle color legend visibility

0682_CLOUDPYME2_1_E

Post processingPost processing

Von Mises stresses:Von Mises stresses:Select Color by RESU_SIEQ_NOEU [1] 0 / VMISSelect Color by RESU_SIEQ_NOEU [1] 0 / VMIS