2015 09-18-jawsug hpc-#1

28
How to setup CAELinux2013 on AWS JAWSUG HPC

Upload: hiroshi-kobayashi

Post on 06-Apr-2017

352 views

Category:

Technology


0 download

TRANSCRIPT

Page 1: 2015 09-18-jawsug hpc-#1

How to setup CAELinux2013 on

AWS JAWSUG HPC

Page 2: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Agenda

1. Preparation2. Launch CAELinux2013 on AWS3. Connect to CAELinux

• ssh• X2GO for OSX• X2GO for Windows

4. Run OpenFOAM• Tutorial model “Cavity”• Mesh – Run – Post

5. Terminate EC2

Page 3: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

preparation

AWS account For Mac

terminal For Windows

ssh client : putty, teraterm Scp client : WinSCP, Filezilla

Tutorial by CAELinux http://

caelinux.com/CMS/index.php?option=com_kunena&func=view&catid=2&id=7359&Itemid=300025#7359

Page 4: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Launch CAELinux2013 on AWS CAELinux2013

Go to AWS console https://console.aws.amazon.com/

Select Tokyo region Go to EC2 console

Page 5: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Launch CAELinux2013 on AWS (Cont.)

Click “Instances” Click “Launch Instance”

Page 6: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Launch CAELinux2013 on AWS (Cont.)

Click “Community AMIs” Search the AMI with “CAELinux” Click “Select”

Page 7: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Launch CAELinux2013 on AWS (Cont.)

Step 2: Choose an Instance Type c4.xlarge may b good for testing Click “Next Configure Instance Details”

Step 3: Configure Instance Details All configuration are default Click “Next: Add Storage”

Step 4: Add Storage Default Click “Next: Tag Instance”

Page 8: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Launch CAELinux2013 on AWS (Cont.)

Step 5: Tag Instance Value = instance name on AWS EC2 console Click “Next: Configure Security Group”

Step 6: Configure Security Group See right Click “Review Launch

Step 7: Review Instance Launch Click “Launch”

Page 9: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Launch CAELinux2013 on AWS (Cont.)

Select an existing key pair or create a new key pair Choose an existing key pair

Select a key pair Check the acknowledgement Click “Launch Instances”

Create a new key pair Define your key pair name Download key pair Click “Launch Instances”

Go back to EC2 console

Page 10: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux –ssh-

Ssh log in to CAELinux instance Host : Public DNS or public IP User : ubuntu Key : your key pair

Mac : ssh -i yourkeypair.pem [email protected] Windows : Putty, Teraterm…etc

Execute “setupCAELinuxUser.sh” or “passwd caelinux” Set a password for the desktop user “caelinux”

Page 11: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux Installing X2Go on OSX

Page 12: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux –X2GO-

作業の流れ Xquartz install X2Go Client install X2Go の接続テスト詳細は下記を参照

http://wiki.x2go.org/doku.php/doc:installation:x2goclient

Page 13: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux –X2GO-

Download Xqauartz from below URL http://xquartz.macosforge.org/landing/ V ersion 2.7.7 is the latest at 2015-09-14

Double click on XQaurtz.pkg

After installation, please log-out once

Page 14: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux –X2GO-

Download the client package from below URL http

://code.x2go.org/releases/binary-macosx/x2goclient/releases/4.0.5.0/

Recommended to use the latest and older OSX version which you use

Double click on the dmg file and drag x2goclient into Application folder

Page 15: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux –X2GO- Launch x2goclient and

configure like upper right figure Click “OK” please enter the password Click “OK” You can see the beautiful snow

mountain view after 15-30 sec

Page 16: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux Installing X2Go on Windows

Page 17: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux –X2GO-

Install X2GO on Windows Download setup exe from

http://code.x2go.org/releases/binary-win32/x2goclient/releases/4.0.5.0-2015.07.31/ Execute the downloaded installer

Page 18: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Connect to CAELinux –X2GO- Launch x2goclient and

configure like upper right figure Click “OK” please enter the password Click “OK” You can see the beautiful snow

mountain view after 15-30 sec

Page 19: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Run OpenFOAM

Page 20: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Example case

天井駆動のキャビティ流れ:2次元製法領域の等温非圧縮性流れLid-driven cavity flor : This is a case involving isothermal, incompressible flow in a two-dimensional square domain.

Page 21: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Preparation

Open “OpenFOAM Terminal” Applications caelinux OpenFOAM 2.1.1 Terminal

Make work directory & Copy tutolial model mkdir <your workdir name> cp -r /opt/openfoam211/tutorials/incompressible/icoFoam/cavity ~/<your workdir

name>/

Page 22: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Pre-processing : Create Mesh

Change dir & execute mesh command cd <your workdir name>/cavity blockMesh

Page 23: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

View mesh

Execute view command paraFoam After execute “paraFoam” command,

Paraview window is opened.

Page 24: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Run OpenFOAM

Execute command icoFoam

Page 25: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Post-processing : View result

Execute command paraFoam

Click Apply button

Page 26: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Post-processing : View result

Select “◆ p” Select “surface”

Click ▶ button

Click “Rescale to Data Range” button

Page 27: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

Post-processing : View result

You can see pressures in the cavity case.

Page 28: 2015 09-18-jawsug hpc-#1

JAWS-UG HPC

References

OpenFOAM ユーザーガイド和訳 version 2.2.0 2013 年 6 月 10 日一般社団法人 オープン CAE 学会(和訳)http://foam.sourceforge.net/docs/Guides-a4/UserGuide-Japanese.pdf

オープン CAE 勉強会@富山 2014 年 1 月 25 日資料よりはじめての OpemFOAM その1 富山県立大学 中川慎二http://eddy.pu-toyama.ac.jp/%E3%82%AA%E3%83%BC%E3%83%97%E3%83%B3CAE%E5%8B%89%E5%BC%B7%E4%BC%9A-%E5%AF%8C%E5%B1%B1/#_99