Font Size: a A A

Study On The Extraction Of CFD Kernel Code In OpenFOAM Software

Posted on:2020-02-19Degree:MasterType:Thesis
Country:ChinaCandidate:C Y ZhengFull Text:PDF
GTID:2370330578955420Subject:Hydraulic engineering
Abstract/Summary:PDF Full Text Request
Turbulence is a classically difficult problem in fluid mechanics and has a great theoretical and applied background.The new thinking and computer simulation is needed for turbulence research,but the workload of programming is enormous.So,how to carry out numerical simulation of new flow theory based on existing program framework is the starting point of this paper.Various computational fluid dynamics(CFD)software are designed around the classical convection-diffusion flow theory framework at present.And can only do the simple extension of coefficient and source term but inconvenient for the study of new theory of flow.Using the famous open source CFD software OpenFOAM,the core flow analysis module is extracted in order to take the extracted core code as the basis of the numerical study of the new flow theory.After years of development and many versions change,OpenFOAM has become powerful and the code has become very large.This paper conducted the following research on the software:(1)Three main solvers for OpenFOAM flow analysis are identified,further more,with the solver as the clue,the structure frame of its CFD core module is analyzed.(2)Using the wmake compiler and link library logic of OpenFOAM,the complete CFD core code is extracted and compiled independently,and compared with the original code base.(3)Three examples are given to verify the validity and correctness of the extracted core code.The CFD core code extracted in this paper is concise and scalable.It will be used in the numerical simulation of new flow theory to promote the study of turbulence.
Keywords/Search Tags:OpenFOAM, solver, flows theory, numerical simulation
PDF Full Text Request
Related items