欢迎来到尧图网

客户服务 关于我们

您的位置:首页 > 科技 > IT业 > Windows下编译安装Kratos

Windows下编译安装Kratos

2024/10/25 11:26:38 来源:https://blog.csdn.net/qq_26221775/article/details/140725818  浏览:    关键词: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.exe 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

版权声明:

本网仅为发布的内容提供存储空间,不对发表、转载的内容提供任何形式的保证。凡本网注明“来源:XXX网络”的作品,均转载自其它媒体,著作权归作者所有,商业转载请联系作者获得授权,非商业转载请注明出处。

我们尊重并感谢每一位作者,均已注明文章来源和作者。如因作品内容、版权或其它问题,请及时与我们联系,联系邮箱:809451989@qq.com,投稿邮箱:809451989@qq.com