Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department,...

42
Processing of a CAD/CAE Jobs in Processing of a CAD/CAE Jobs in grid environment using Elmer grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed ohamed Hussein ussein A. A.Razik Razik GRID Computing Group GRID Computing Group LIT LAB LIT LAB

Transcript of Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department,...

Page 1: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Processing of a CAD/CAE Jobs in grid Processing of a CAD/CAE Jobs in grid environment using Elmerenvironment using Elmer

Electronics Group,Physics Department,Faculty of Science,Ain Shams University,

MMohamed ohamed HHusseinussein A. A.RazikRazik

GRID Computing Group GRID Computing Group

LIT LABLIT LAB

Page 2: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 3: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Aim of the TaskAim of the Task

The aim of my task is to simulate a physical phenomena which is heat transfer by using Elmer software and execute this simulation on the grid and take the result from the grid to the PC via user interface.

Page 4: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 5: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

What is Elmer?What is Elmer?Elmer is a finite element software package

for the solution of partial differential equation(s),dealing with multiphysical simulations.

The Elmer package contains solvers for a variety of mathematical models. The following list summarizes the capabilities of Elmer in specialized fields.

Page 6: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Physical models in ElmerPhysical models in Elmer• Heat transfer: models for conduction, radiation and phase

change• Fluid flow: the Navier-Stokes, Stokes and Reynolds equations,

k-" model• Species transport: generic convection-diffusion equation• Elasticity: general elasticity equations, dimensionally reduced

models for plates and shells• Acoustics: the Helmholtz equation• Electromagnetism: electrostatics, magnetostatics, induction• Micro fluidics: slip conditions, the Poisson-Boltzmann equation• Level set method: Euleri an free boundary problems• Quantum Mechanics: density functional theory (Kohn-Sham)

Page 7: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Numerical methods in ElmerNumerical methods in Elmer For approximation and linear system solution Elmer offers a

great number of possibilities. The following list summarizes some of the most essential ones.

• All basic element shapes in 1D, 2D and 3D with the Lagrange shape functions of degree k 2

• Higher degree approximation using p-elements• Time integration schemes for the first and second

order equations• Solution methods for Eigen value problems• Direct linear system solvers (Lapack & Umfpack)• Iterative Krylov subspace solvers for linear systems• ILU preconditioning of linear systems• Parallelization of iterative methods• The discontinuous Galerk in method• Stabilized finite element formulations, including the

methods of residual free bubbles and SUPG• Adaptively, particularly in 2D

Page 8: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 9: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

IntroductioIntroduction to n to Message Passing Message Passing Interface (Interface (MPI)MPI) What is MPI?

◦ Message Passing Interface Message passing is a method by which data from one processor memory

is copied to another processor memory Why MPI?

◦ MPI library functions enable programmers to write portable codes, which can run on distributed-memory/shared memory multiprocessor machines cluster of workstations

9

Page 10: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Parallel processingParallel processing

Parallel processing is the ability to carry out multiple operations or tasks simultaneously.

Parallel Processing in Computers The simultaneous use of more than one CPU

or processor core to execute a program or multiple computational threads. Ideally, parallel processing makes programs run faster because there are more engines (CPUs or cores) running it.

Page 11: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Parallel Implementation in ElmerParallel Implementation in Elmer

The general concept of a parallel run within Elmer is displayed in Figure .

Elmer uses domain decomposition for distributing the load to multiple processes that are being run on either different cores or CPUs. To that end, the initial mesh has to be split into parts that – with respect to the applied models – lead to similar loads of the processors.

Page 12: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 13: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 14: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Practice on Elmer software Practice on Elmer software The aim task is to run a simulation

experiment on the grid and this simulation is worked parallel and take the result and store it on the pc via user interface.

We have a physical problem heat transfer begins with certain boundary conditions after certain time we study the heat transfer.

Page 15: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Workflow to create Elmer file Workflow to create Elmer file Open your input file (example: samples/grd/angle3d.grd):

Page 16: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowOptionally configure mesh generator and remesh:

Page 17: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflow The values in the config dialog are inherited from cmd line tools: As shown in special window

Page 18: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowRemeshing is perfomed in a separate thread:

Page 19: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflow Manipulate boundaries: Select boundaries by holding down the CTRL-key

while double clicking. Choose ”unify surface” to join:

Page 20: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowDefine an equation (PDE-system) to solve:As shown in special window

Page 21: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflow Let us define the ”heat equation” as an example: As shown in special window

Page 22: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflow Similarly, we can next define material properties and parameters: As shown in special window

Page 23: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowAdd body force:

Page 24: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowset boundary conditions:

Page 25: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowGenerate solver input file (sif):

Page 26: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowSave the model:

Page 27: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowRun solver:

Page 28: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflow Convergence monitor reveals possible problems:

Page 29: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 30: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 31: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Processing of the data on the gridProcessing of the data on the grid

Job submissionJob submission of Elmer file to the gridof Elmer file to the grid

Page 32: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Job statusJob status

Page 33: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Retrieve job's outputRetrieve job's output

Page 34: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Transfer the result from the grid Transfer the result from the grid to the pc via interface.to the pc via interface.

Page 35: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowVisualize the results by Elmer post:

Page 36: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.
Page 37: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Acknowledgement Acknowledgement

I would like to thank:Alexander UjhinskiyNikolay kutovskiy

For continuous efforts for teaching the aspects and completing the jobs of the grid. Thanks for sincerely help.

ANDThanks for supervisors of the school

for help and attentions.Prof.Dr.Ali Ellithi & Prof.Dr. Ali Khalil

Page 38: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

Thank you for your Thank you for your attentionattention

Page 39: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

?

Page 40: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflow Edit the solver input file (if needed):

Page 41: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflow Turn on/off boundary index numbering for verification:

Page 42: Processing of a CAD/CAE Jobs in grid environment using Elmer Electronics Group, Physics Department, Faculty of Science, Ain Shams University, Mohamed Hussein.

WorkflowWorkflowData is given in the ”General” and ”Heat equation”

tabs: