SlideShare a Scribd company logo
4
Most read
9
Most read
14
Most read
Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.)
Masashi Imano (OCAEL Co.Ltd.)
Optimization of parameter settings
for GAMG solver in simple solver
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Test cluster condition
• Hardware: SGI Altix ICE8200

• CPU: Intel Xeon X5365 3.00GHz 4cores x 2

• Node: 16 nodes

• Memory: 16GB/node (No swap memory)

• Interconnect: InfiniBand DDR

• OS: SUSE LINUX ENTERPRISE SERVER 10.3

• MPI:
✓ SGI MPT (1.2.6)
Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.)
“Guidebook for Practical
Applications of CFD
to Pedestrian Wind
Environment around Buildings”
Working Group in Architectural Institute of Japan
Web site (in Japanese and English)( in Japanese)
Akashi Mochida, Yoshihide Tominaga, et al.
Guideline for Practical Applications
Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.)
Case A
(2:1:1 shape)
Case B
(4:4:1 shape)
Case C
(Simple blocks)
Case D
(High-rise bldg.)
Case E
(Niigata)
Case F
(Shinjuku, Tokyo)
Benchmark tests
Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.)
Mesh
Cartesian mesh

(snappyHexMesh)

2.2 millions
Inflow
Interpolate from wind
tunnel results
Top & Side
wall
Zero gradient
Ground and
bldg. wall
Generalized log law

for a smooth wall
Turbulence
model
Standard k-epsilon
Advection
scheme
Upwind
Algorithm SIMPLE (simpleFoam)
Wind direction NNE
Building
complexes with
simple building
shape in actual
urban area
(Niigata)
Case E - Calculation condition
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Accelerate incompressible solver
• CPU time of linear solver for pressure is dominant:

✓ Many nodes : PCG is faster

✓ Not so many nodes : GAMG is faster

➡ Need to optimize of parameter for GAMG
T2K at The University of Tokyo
Node: 16 cores
Interconnect: Myrinet 2.5GB/s X 2

Solver: ChannelFoam

Mesh: 256x256x256

Pre-conditioner for GAMG: DIC
Better
Worse
PCG
is
faster
GAMG
is
faster
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
GAMG
Geometric agglomerated algebraic multi-grid solver
(Generalised geometric-algebraic multi-grid in Userguide)
http://www.lrr.in.tum.de/Par/appls/apps/amg.html
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Geometric agglomeration process
Tim Behrens: OpenFOAM's basic solvers for linear systems of equations Solvers, preconditioners, smoothers,
PhD course in CFD with OpenSource software, Technical University of Denmark, February 18, 2009
Merge
Finest grid (Lv.1) Coarse grid (Lv.2)
agglomerator faceAreaPair;

mergeLevels 1;
Coarsest grid (Lv.3)
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Parameter settings for AMG solver
smoother GaussSeidel, DIC, DICGaussSeidel; // GaussSeidel is
usually best

directSolveCoarsest false, true; // false: Use ICCG/BICCG for
coarsest grid, true: Solve directly in coarsest grid

agglomerator faceAreaPair, algebraicPair; // faceAreaPair is usually
better than algebraicPair

mergeLevels 1, 2, 3, ..; // Usually 1 is better. For simple meshes
setting 2 could be better.

nPreSweeps 0, 1, 2, ..; // Number of pre-smoothing sweeps

nPostSweeps 0, 1, 2, ..; // Number of post-smoothing sweeps

nFinestSweeps 0, 1, 2,..; // Number of smoothing sweeps on finest
mesh

nCellsInCoarsestLevel 1, 2, ..; // Number of cells in coarsest level
mesh
system/fvSolution:
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Study about nCellsInCoarsestLevel
smoother GaussSeidel, DIC, DICGaussSeidel; // GaussSeidel is
usually best

directSolveCoarsest false, true; // true: Use ICCG/BICCG for
coarsest grid, false: Solve directly in coarsest grid

agglomerator faceAreaPair, algebraicPair; // faceAreaPair is usually
better than algebraicPair

mergeLevels 1, 2, 3, ..; // Usually 1 is better. For simple meshes
setting 2 could be better.

nPreSweeps 0, 1, 2, 3, ..; // Number of pre-smoothing sweeps

nPostSweeps 0, 1, 2, 3, ..; // Number of post-smoothing sweeps

nFinestSweeps 0, 1, 2, 3,..; // Number of smoothing sweeps on finest
mesh

nCellsInCoarsestLevel 8, 16, 32, .., 256, .., 2048, 4096, 8192; //
Number of cells in coarsest level mesh
system/fvSolution:
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Other calculation conditions
relaxationFactors	
  //	
  0	
  <	
  relaxationFactors	
  <=	
  1	
  
{	
  
	
  	
  	
  	
  p	
  	
  	
  	
  	
  	
  	
  	
  0.3;	
  //	
  for	
  pressure	
  (important)	
  
	
  	
  	
  	
  U	
  	
  	
  	
  	
  	
  	
  	
  0.5;	
  //	
  for	
  velocity	
  vectors	
  (important)	
  
	
  	
  	
  	
  k	
  	
  	
  	
  	
  	
  	
  	
  0.5;	
  //	
  for	
  turbulence	
  kinetic	
  energy	
  
	
  	
  	
  	
  epsilon	
  	
  0.5;	
  //	
  for	
  turbulence	
  kinetit	
  energy	
  
	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  	
  //	
  dissipation	
  rate	
  
}
system/fvSolution:
Solver: simpleFoam

Iitial field conditions: potentialFoam

CPU time: 50 steps (No write result field)
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Results of speedup ratio
Speedupratio(base256cells)
0.7
0.8
0.9
1
1.1
Number of Cells In Coarsest Level Grid
8 16 32 64 128 256 512 1024 2048 4096 8192
1 node 2 nodes 4 nodes 8 nodes 16 nodes
Better range
for any nodes
Worse
Better
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Study about nCellsInCoarsestLevel
smoother GaussSeidel, DIC, DICGaussSeidel; // GaussSeidel is
usually best

directSolveCoarsest false, true; // true: Use ICCG/BICCG for
coarsest grid, false: Solve directly in coarsest grid

agglomerator faceAreaPair, algebraicPair; // faceAreaPair is usually
better than algebraicPair

mergeLevels 1, 2, 3, ..; // Usually 1 is better. For simple meshes
setting 2 could be better.

nPreSweeps 0, 1, 2, 3, ..; // Number of pre-smoothing sweeps

nPostSweeps 0, 1, 2, 3, ..; // Number of post-smoothing sweeps

nFinestSweeps 0, 1, 2, 3,..; // Number of smoothing sweeps on finest
mesh

nCellsInCoarsestLevel 8, 16, 32, .., 256, .., 2048, 4096, 8192; //
Number of cells in coarsest level mesh
system/fvSolution:
Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.)
Results of speedup ratio
Speedupratio(basesetting)
0.2
0.3
0.4
0.5
0.6
0.7
0.8
0.9
1
1.1
1 node 2 nodes 4 nodes 8 nodes 16 nodes
Worse
Better
mergeLevels 1 2
nPreSweeps 0 1 0 1
nPostSweeps 1 2 3 1 2 3 1 2 3 1 2 3
nFinestSwee 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3
Better
range
for any
nodes
Base
setting
16 nodes
(Speedup ratio could
decrease in many node
parallel calculation
when mergeLevels is 2)
Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.)
Any Questions?

More Related Content

PDF
About dexcs2021 for OpenFOAM
Etsuji Nomura
 
PDF
バッチ処理にバインド変数はもうやめません? ~|バッチ処理の突発遅延を題材にして考えてみる~
Ryota Watabe
 
PDF
Of tutorials v1806
Etsuji Nomura
 
PPTX
Dakota+openFoam1
守淑 田村
 
PDF
Azureをフル活用したサーバーレスの潮流について
真吾 吉田
 
PDF
Oracle Cloud Infrastructure:2021年9月度サービス・アップデート
オラクルエンジニア通信
 
PDF
流体解析入門者向け超初級講習会@関東 修正版
Masashi Imano
 
PPT
Tomcat
Venkat Pinagadi
 
About dexcs2021 for OpenFOAM
Etsuji Nomura
 
バッチ処理にバインド変数はもうやめません? ~|バッチ処理の突発遅延を題材にして考えてみる~
Ryota Watabe
 
Of tutorials v1806
Etsuji Nomura
 
Dakota+openFoam1
守淑 田村
 
Azureをフル活用したサーバーレスの潮流について
真吾 吉田
 
Oracle Cloud Infrastructure:2021年9月度サービス・アップデート
オラクルエンジニア通信
 
流体解析入門者向け超初級講習会@関東 修正版
Masashi Imano
 

What's hot (20)

PDF
howtoCADandMeshing2022.pdf
Etsuji Nomura
 
PDF
OpenFOAM+のCo-simulation機能とFMUの試作
Amane Tanaka
 
PDF
Spring aop
Hamid Ghorbani
 
PDF
OpenFOAMスレッド並列化のための基礎検討
Fixstars Corporation
 
PDF
最適なOpenJDKディストリビューションの選び方 #codetokyo19B3 #ccc_l5
Takahiro YAMADA
 
PDF
Free cad 0.19.2 and cfdof (Japanese Ver.)
YohichiShiina
 
PDF
待ち事象から考える、Sql server の改善ポイント
Masayuki Ozawa
 
PDF
Dexcs2021 of install2
Etsuji Nomura
 
PDF
Dexcs2019 of install
Etsuji Nomura
 
PDF
Oracle Analytics Cloud のご紹介【2021年3月版】
オラクルエンジニア通信
 
PDF
Oracle Cloud Infrastructure:2021年11月度サービス・アップデート
オラクルエンジニア通信
 
PDF
AWS와 부하테스트의 절묘한 만남 :: 김무현 솔루션즈 아키텍트 :: Gaming on AWS 2016
Amazon Web Services Korea
 
KEY
BDD勉強会 第6回
zakihaya
 
PDF
“SharePoint Online Management Shell” をプログラムから実行する
Kosuke Kuromiya
 
PDF
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
vasuballa
 
PPT
Introdução à programação para web com Java - Módulo 03: Conceitos básicos de...
Professor Samuel Ribeiro
 
PDF
DBREから始めるデータベースプラットフォーム
Insight Technology, Inc.
 
PPTX
WebAssembly WASM Introduction Presentation
Brad Beiermann
 
PDF
Automation Abstraction Layers: Page Objects and Beyond
Alan Richardson
 
PPTX
Introdcution to Openfoam--working with free software
pengding2
 
howtoCADandMeshing2022.pdf
Etsuji Nomura
 
OpenFOAM+のCo-simulation機能とFMUの試作
Amane Tanaka
 
Spring aop
Hamid Ghorbani
 
OpenFOAMスレッド並列化のための基礎検討
Fixstars Corporation
 
最適なOpenJDKディストリビューションの選び方 #codetokyo19B3 #ccc_l5
Takahiro YAMADA
 
Free cad 0.19.2 and cfdof (Japanese Ver.)
YohichiShiina
 
待ち事象から考える、Sql server の改善ポイント
Masayuki Ozawa
 
Dexcs2021 of install2
Etsuji Nomura
 
Dexcs2019 of install
Etsuji Nomura
 
Oracle Analytics Cloud のご紹介【2021年3月版】
オラクルエンジニア通信
 
Oracle Cloud Infrastructure:2021年11月度サービス・アップデート
オラクルエンジニア通信
 
AWS와 부하테스트의 절묘한 만남 :: 김무현 솔루션즈 아키텍트 :: Gaming on AWS 2016
Amazon Web Services Korea
 
BDD勉強会 第6回
zakihaya
 
“SharePoint Online Management Shell” をプログラムから実行する
Kosuke Kuromiya
 
OOW16 - Advanced Architectures for Oracle E-Business Suite [CON6705]
vasuballa
 
Introdução à programação para web com Java - Módulo 03: Conceitos básicos de...
Professor Samuel Ribeiro
 
DBREから始めるデータベースプラットフォーム
Insight Technology, Inc.
 
WebAssembly WASM Introduction Presentation
Brad Beiermann
 
Automation Abstraction Layers: Page Objects and Beyond
Alan Richardson
 
Introdcution to Openfoam--working with free software
pengding2
 
Ad

Viewers also liked (20)

PDF
Optimization of relaxation factor for simple solver, OpenFOAM Study Meeting f...
Masashi Imano
 
PDF
Boundary Conditions in OpenFOAM
Fumiya Nozaki
 
PDF
Spatial Interpolation Schemes in OpenFOAM
Fumiya Nozaki
 
PDF
Limited Gradient Schemes in OpenFOAM
Fumiya Nozaki
 
PDF
Dynamic Mesh in OpenFOAM
Fumiya Nozaki
 
PPTX
MSc Presentation.potx
Akshat Srivastava
 
PDF
OpenFOAM for beginners: Hands-on training
Jibran Haider
 
PDF
CFD for Rotating Machinery using OpenFOAM
Fumiya Nozaki
 
PDF
Baffle meshing
Etsuji Nomura
 
PDF
Motor bike by cfmesh
Etsuji Nomura
 
PDF
20141213 cf mesh
Etsuji Nomura
 
PDF
Mixer vessel by cfmesh
Etsuji Nomura
 
ODP
Basilica cistern, Istanbul
mhr56
 
PPTX
Buy Chef Pants
Chefs Closet
 
DOCX
quà tặng bộ số để bàn,biểu trưng số kỷ niệm ngày thành lập
Nhật Minh
 
PPT
Course materials chapter 5 winter 2014
actus2007
 
PDF
06.02.2014 odf ukraine_military_scenario_pl
odfoundation
 
PDF
Elektroninio pasto klientu_konfiguravimas
Donatas Bukelis
 
PPTX
2014 h & f uniteam
ah_ape
 
PDF
К. Скобеев: "Точки роста проекта без ссылок"
Скобеев и Партнеры
 
Optimization of relaxation factor for simple solver, OpenFOAM Study Meeting f...
Masashi Imano
 
Boundary Conditions in OpenFOAM
Fumiya Nozaki
 
Spatial Interpolation Schemes in OpenFOAM
Fumiya Nozaki
 
Limited Gradient Schemes in OpenFOAM
Fumiya Nozaki
 
Dynamic Mesh in OpenFOAM
Fumiya Nozaki
 
MSc Presentation.potx
Akshat Srivastava
 
OpenFOAM for beginners: Hands-on training
Jibran Haider
 
CFD for Rotating Machinery using OpenFOAM
Fumiya Nozaki
 
Baffle meshing
Etsuji Nomura
 
Motor bike by cfmesh
Etsuji Nomura
 
20141213 cf mesh
Etsuji Nomura
 
Mixer vessel by cfmesh
Etsuji Nomura
 
Basilica cistern, Istanbul
mhr56
 
Buy Chef Pants
Chefs Closet
 
quà tặng bộ số để bàn,biểu trưng số kỷ niệm ngày thành lập
Nhật Minh
 
Course materials chapter 5 winter 2014
actus2007
 
06.02.2014 odf ukraine_military_scenario_pl
odfoundation
 
Elektroninio pasto klientu_konfiguravimas
Donatas Bukelis
 
2014 h & f uniteam
ah_ape
 
К. Скобеев: "Точки роста проекта без ссылок"
Скобеев и Партнеры
 
Ad

Similar to Optimization of parameter settings for GAMG solver in simple solver, OpenFOAM Study Meeting for beginner@Kanto, 8th Sep. 2012 (17)

PDF
SGI OpenFOAM Cloud Benchmark Part 3, OpenFOAM Study Meeting for beginner@Kans...
Masashi Imano
 
PPTX
A challenge for thread parallelism on OpenFOAM
Fixstars Corporation
 
PPTX
Discretization.pptx
Narayana Swamy G
 
PDF
SGI OpenFOAM Cloud Benchmark Part 2, OpenFOAM Study Meeting for beginner@Kant...
Masashi Imano
 
PDF
SpeedIT : GPU-based acceleration of sparse linear algebra
University of Zurich
 
PDF
SGI OpenFOAM Cloud Benchmark, OpenFOAM Study Meeting for beginner@Kansai, 7th...
Masashi Imano
 
PDF
Gpuslides
Storti Mario
 
PDF
Basic openfoa mtutorialsguide
Luis Fernando Rua Mojica
 
PPTX
Computational Fluid Dynamics: Discretization
narayanaswamygdas
 
PDF
Barker_SIAMCSE15
Karen Pao
 
PDF
GPU acceleration of a non-hydrostatic ocean model with a multigrid Poisson/He...
Takateru Yamagishi
 
PDF
Balman climate-c sc-ads-2011
balmanme
 
PPT
Fluent and Gambit Workshop
khalid_nitt
 
PDF
OpenFOAM Training v5-1-en
Cyprien Soulaine
 
PDF
Agere.talk
Akinori Yonezawa
 
PDF
CFD and more with Acusolve and HyperWorks
Altair
 
SGI OpenFOAM Cloud Benchmark Part 3, OpenFOAM Study Meeting for beginner@Kans...
Masashi Imano
 
A challenge for thread parallelism on OpenFOAM
Fixstars Corporation
 
Discretization.pptx
Narayana Swamy G
 
SGI OpenFOAM Cloud Benchmark Part 2, OpenFOAM Study Meeting for beginner@Kant...
Masashi Imano
 
SpeedIT : GPU-based acceleration of sparse linear algebra
University of Zurich
 
SGI OpenFOAM Cloud Benchmark, OpenFOAM Study Meeting for beginner@Kansai, 7th...
Masashi Imano
 
Gpuslides
Storti Mario
 
Basic openfoa mtutorialsguide
Luis Fernando Rua Mojica
 
Computational Fluid Dynamics: Discretization
narayanaswamygdas
 
Barker_SIAMCSE15
Karen Pao
 
GPU acceleration of a non-hydrostatic ocean model with a multigrid Poisson/He...
Takateru Yamagishi
 
Balman climate-c sc-ads-2011
balmanme
 
Fluent and Gambit Workshop
khalid_nitt
 
OpenFOAM Training v5-1-en
Cyprien Soulaine
 
Agere.talk
Akinori Yonezawa
 
CFD and more with Acusolve and HyperWorks
Altair
 

Recently uploaded (20)

PPTX
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
PDF
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
PDF
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
PDF
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
PPTX
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
PDF
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
PDF
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
DOCX
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
PPTX
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
PDF
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
PDF
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
PPTX
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
PDF
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
PDF
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
PDF
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
PDF
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
PDF
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
PPTX
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
PDF
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
PPTX
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 
22PCOAM21 Session 1 Data Management.pptx
Guru Nanak Technical Institutions
 
FLEX-LNG-Company-Presentation-Nov-2017.pdf
jbloggzs
 
Traditional Exams vs Continuous Assessment in Boarding Schools.pdf
The Asian School
 
flutter Launcher Icons, Splash Screens & Fonts
Ahmed Mohamed
 
IoT_Smart_Agriculture_Presentations.pptx
poojakumari696707
 
July 2025: Top 10 Read Articles Advanced Information Technology
ijait
 
Advanced LangChain & RAG: Building a Financial AI Assistant with Real-Time Data
Soufiane Sejjari
 
SAR - EEEfdfdsdasdsdasdasdasdasdasdasdasda.docx
Kanimozhi676285
 
Chapter_Seven_Construction_Reliability_Elective_III_Msc CM
SubashKumarBhattarai
 
settlement FOR FOUNDATION ENGINEERS.pdf
Endalkazene
 
Introduction to Ship Engine Room Systems.pdf
Mahmoud Moghtaderi
 
22PCOAM21 Session 2 Understanding Data Source.pptx
Guru Nanak Technical Institutions
 
67243-Cooling and Heating & Calculation.pdf
DHAKA POLYTECHNIC
 
Top 10 read articles In Managing Information Technology.pdf
IJMIT JOURNAL
 
Cryptography and Information :Security Fundamentals
Dr. Madhuri Jawale
 
The Effect of Artifact Removal from EEG Signals on the Detection of Epileptic...
Partho Prosad
 
Chad Ayach - A Versatile Aerospace Professional
Chad Ayach
 
Module2 Data Base Design- ER and NF.pptx
gomathisankariv2
 
dse_final_merit_2025_26 gtgfffffcjjjuuyy
rushabhjain127
 
FUNDAMENTALS OF ELECTRIC VEHICLES UNIT-1
MikkiliSuresh
 

Optimization of parameter settings for GAMG solver in simple solver, OpenFOAM Study Meeting for beginner@Kanto, 8th Sep. 2012

  • 1. Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.) Masashi Imano (OCAEL Co.Ltd.) Optimization of parameter settings for GAMG solver in simple solver
  • 2. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Test cluster condition • Hardware: SGI Altix ICE8200 • CPU: Intel Xeon X5365 3.00GHz 4cores x 2 • Node: 16 nodes • Memory: 16GB/node (No swap memory) • Interconnect: InfiniBand DDR • OS: SUSE LINUX ENTERPRISE SERVER 10.3 • MPI: ✓ SGI MPT (1.2.6)
  • 3. Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.) “Guidebook for Practical Applications of CFD to Pedestrian Wind Environment around Buildings” Working Group in Architectural Institute of Japan Web site (in Japanese and English)( in Japanese) Akashi Mochida, Yoshihide Tominaga, et al. Guideline for Practical Applications
  • 4. Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.) Case A (2:1:1 shape) Case B (4:4:1 shape) Case C (Simple blocks) Case D (High-rise bldg.) Case E (Niigata) Case F (Shinjuku, Tokyo) Benchmark tests
  • 5. Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.) Mesh Cartesian mesh (snappyHexMesh) 2.2 millions Inflow Interpolate from wind tunnel results Top & Side wall Zero gradient Ground and bldg. wall Generalized log law for a smooth wall Turbulence model Standard k-epsilon Advection scheme Upwind Algorithm SIMPLE (simpleFoam) Wind direction NNE Building complexes with simple building shape in actual urban area (Niigata) Case E - Calculation condition
  • 6. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Accelerate incompressible solver • CPU time of linear solver for pressure is dominant: ✓ Many nodes : PCG is faster ✓ Not so many nodes : GAMG is faster ➡ Need to optimize of parameter for GAMG T2K at The University of Tokyo Node: 16 cores Interconnect: Myrinet 2.5GB/s X 2 Solver: ChannelFoam Mesh: 256x256x256 Pre-conditioner for GAMG: DIC Better Worse PCG is faster GAMG is faster
  • 7. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) GAMG Geometric agglomerated algebraic multi-grid solver (Generalised geometric-algebraic multi-grid in Userguide) http://www.lrr.in.tum.de/Par/appls/apps/amg.html
  • 8. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Geometric agglomeration process Tim Behrens: OpenFOAM's basic solvers for linear systems of equations Solvers, preconditioners, smoothers, PhD course in CFD with OpenSource software, Technical University of Denmark, February 18, 2009 Merge Finest grid (Lv.1) Coarse grid (Lv.2) agglomerator faceAreaPair; mergeLevels 1; Coarsest grid (Lv.3)
  • 9. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Parameter settings for AMG solver smoother GaussSeidel, DIC, DICGaussSeidel; // GaussSeidel is usually best directSolveCoarsest false, true; // false: Use ICCG/BICCG for coarsest grid, true: Solve directly in coarsest grid agglomerator faceAreaPair, algebraicPair; // faceAreaPair is usually better than algebraicPair mergeLevels 1, 2, 3, ..; // Usually 1 is better. For simple meshes setting 2 could be better. nPreSweeps 0, 1, 2, ..; // Number of pre-smoothing sweeps nPostSweeps 0, 1, 2, ..; // Number of post-smoothing sweeps nFinestSweeps 0, 1, 2,..; // Number of smoothing sweeps on finest mesh nCellsInCoarsestLevel 1, 2, ..; // Number of cells in coarsest level mesh system/fvSolution:
  • 10. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Study about nCellsInCoarsestLevel smoother GaussSeidel, DIC, DICGaussSeidel; // GaussSeidel is usually best directSolveCoarsest false, true; // true: Use ICCG/BICCG for coarsest grid, false: Solve directly in coarsest grid agglomerator faceAreaPair, algebraicPair; // faceAreaPair is usually better than algebraicPair mergeLevels 1, 2, 3, ..; // Usually 1 is better. For simple meshes setting 2 could be better. nPreSweeps 0, 1, 2, 3, ..; // Number of pre-smoothing sweeps nPostSweeps 0, 1, 2, 3, ..; // Number of post-smoothing sweeps nFinestSweeps 0, 1, 2, 3,..; // Number of smoothing sweeps on finest mesh nCellsInCoarsestLevel 8, 16, 32, .., 256, .., 2048, 4096, 8192; // Number of cells in coarsest level mesh system/fvSolution:
  • 11. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Other calculation conditions relaxationFactors  //  0  <  relaxationFactors  <=  1   {          p                0.3;  //  for  pressure  (important)          U                0.5;  //  for  velocity  vectors  (important)          k                0.5;  //  for  turbulence  kinetic  energy          epsilon    0.5;  //  for  turbulence  kinetit  energy                                      //  dissipation  rate   } system/fvSolution: Solver: simpleFoam Iitial field conditions: potentialFoam CPU time: 50 steps (No write result field)
  • 12. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Results of speedup ratio Speedupratio(base256cells) 0.7 0.8 0.9 1 1.1 Number of Cells In Coarsest Level Grid 8 16 32 64 128 256 512 1024 2048 4096 8192 1 node 2 nodes 4 nodes 8 nodes 16 nodes Better range for any nodes Worse Better
  • 13. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Study about nCellsInCoarsestLevel smoother GaussSeidel, DIC, DICGaussSeidel; // GaussSeidel is usually best directSolveCoarsest false, true; // true: Use ICCG/BICCG for coarsest grid, false: Solve directly in coarsest grid agglomerator faceAreaPair, algebraicPair; // faceAreaPair is usually better than algebraicPair mergeLevels 1, 2, 3, ..; // Usually 1 is better. For simple meshes setting 2 could be better. nPreSweeps 0, 1, 2, 3, ..; // Number of pre-smoothing sweeps nPostSweeps 0, 1, 2, 3, ..; // Number of post-smoothing sweeps nFinestSweeps 0, 1, 2, 3,..; // Number of smoothing sweeps on finest mesh nCellsInCoarsestLevel 8, 16, 32, .., 256, .., 2048, 4096, 8192; // Number of cells in coarsest level mesh system/fvSolution:
  • 14. Aug. 8th 2012 OpenFOAM Study Meeting for beginner @ Kansai Masashi Imano (OCAEL Co. Ltd.) Results of speedup ratio Speedupratio(basesetting) 0.2 0.3 0.4 0.5 0.6 0.7 0.8 0.9 1 1.1 1 node 2 nodes 4 nodes 8 nodes 16 nodes Worse Better mergeLevels 1 2 nPreSweeps 0 1 0 1 nPostSweeps 1 2 3 1 2 3 1 2 3 1 2 3 nFinestSwee 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 2 3 Better range for any nodes Base setting 16 nodes (Speedup ratio could decrease in many node parallel calculation when mergeLevels is 2)
  • 15. Aug. 26th 2012 OpenFOAM Study Meeting for beginner @ Kanto Masashi Imano (OCAEL Co. Ltd.) Any Questions?