Windows下编译安装Kratos

Kratos是一款开源跨平台的多物理场有限元框架。本文记录在Windows下编译Kratos的流程。

Ref. from Kratos

KRATOS Multiphysics ("Kratos") is a framework for building parallel, multi-disciplinary simulation software, aiming at modularity, extensibility, and high performance. Kratos is written in C++, and counts with an extensive Python interface. 

Ref. from A Framework for Developing Finite Element Codes for Multi-Disciplinary Applications

The objective of this work is to design and implement a framework for building multi-disciplinary finite element programs. This framework is called Kratos and will help to build a wide variety of finite element programs from the simplest formulation, for example a heat conduction problem , to the most complex ones, like multi-disciplinary optimization techniques. From one side it will provide a complete set of flexible tools for fast implementation of experimentalacademic algorithms and form the other side it must be fast and efficient to be used for real industrial analysis.

零、环境

操作系统Windows 11
Visual StudioVisual Studio Community 2022
CMakeCMake 3.24.2
GitGit version 2.45.2.windows.1
BoostBoost 1.80.0

一、下载代码与依赖

1.1 下载代码

git clone --progress --recursive -v https://github.com/KratosMultiphysics/Kratos.git
cd ./Kratos/
git checkout -b Kratos-v9.5 v9.5

1.2 依赖

下载并安装boost_1_80_0-msvc-14.3-64.exe

二、编译

按照下表配置CMake,

Where is the source codeD:/CaeFrameworks/Kratos/Kratos
Where to build the binariesD:/CaeFrameworks/Kratos/BUILD/Kratos-v9.5
CMAKE_INSTALL_PREFIXD:/CaeFrameworks/Kratos/INSTALL/Kratos-v9.5
Boost_INCLUDE_DIRD:/CaeFrameworks/Boost/boost_1_80_0

在VS中右键"ALL_BUILD"完成编译,然后右键"INSTALL"完成安装。

参考资料

  • Pooyan Dadvand. A Framework for Developing Finite Element Codes for Multi-Disciplinary Applications. Monograph CIMNE, January 2008.
  • W. Bangerth. Concepts for Object-oriented finite element software - the deal Ⅱ library. 1999.

网络资料

Kratos

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值