如何安装 code-saturne Ubuntu 18.04

在本教程中,我们学习如何安装 code-saturne Ubuntu 18.04。 code-saturne 是通用计算流体动力学 (CFD) 软件

介绍

在本教程中我们学习如何安装 code-saturne 在 Ubuntu 18.04。

什么是 code-saturne

代码-saturne 是:

Code_Saturne 的基本功能可以处理有或没有传热和湍流的不可压缩或可膨胀流。 专用模块可用于特定物理场,例如辐射传热、燃烧(天然气、煤、重燃油等)、磁流体动力学、可压缩流、两相流(具有双向耦合的欧拉-拉格朗日方法)、扩展到特定的应用(例如用于大气环境的Mercure_Saturne)。

它与分布式内存机器上的 MPI 并行运行。 它自 1997 年起在 EDF R&D 开发,基于并置有限体积方法,接受具有任何类型单元(四面体、六面体、棱柱形、金字塔形、多面体……)和任何类型网格结构(非结构化、块结构、混合、一致或带有悬挂节点,…)。

有三种安装方法 code-saturne 在 Ubuntu 18.04。 我们可以用 apt-get, aptaptitude。 在以下部分中,我们将描述每种方法。 您可以选择其中之一。

使用 apt-get 安装 code-saturne

更新 apt 数据库 apt-get 使用以下命令。

更新apt数据库后,我们可以安装 code-saturne 使用 apt-get 通过运行以下命令:

sudo apt-get -y install code-saturne

使用 apt 安装 code-saturne

更新 apt 数据库 apt 使用以下命令。

更新apt数据库后,我们可以安装 code-saturne 使用 apt 通过运行以下命令:

sudo apt -y install code-saturne

使用 aptitude 安装 code-saturne

如果您想遵循此方法,您可能需要先安装 aptitude,因为 aptitude 通常不会默认安装 Ubuntu。 更新 apt 数据库 aptitude 使用以下命令。

更新apt数据库后,我们可以安装 code-saturne 使用 aptitude 通过运行以下命令:

sudo aptitude -y install code-saturne

如何卸载 code-saturne Ubuntu 18.04

仅卸载 code-saturne 打包我们可以使用以下命令:

sudo apt-get remove code-saturne

卸载 code-saturne 及其依赖项

卸载 code-saturne 及其不再需要的依赖项 Ubuntu 18.04,我们可以使用以下命令:

sudo apt-get -y autoremove code-saturne

删除 code-saturne 配置和数据

去除 code-saturne 配置和数据来自 Ubuntu 18.04我们可以使用以下命令:

sudo apt-get -y purge code-saturne

删除 code-saturne 配置、数据及其所有依赖项

我们可以使用下面的命令来删除 code-saturne 配置、数据及其所有依赖项,我们可以使用以下命令:

sudo apt-get -y autoremove --purge code-saturne

参考

概括

在本教程中我们学习如何安装 code-saturne 封装在 Ubuntu 18.04 使用不同的包管理工具: apt, apt-getaptitude