# ti-pft **Repository Path**: piteqiu/ti-pft ## Basic Information - **Project Name**: ti-pft - **Description**: 基于船舶静水力学⚓、三维线性频域势流理论🌊的排水型刚性船舶运动与波浪载荷计算系统(静力学:alpha,水动力学:experimental);预计 2023 年 1 月开始编制规则波频域势流理论计算代码。 - **Primary Language**: FORTRAN - **License**: Not specified - **Default Branch**: main - **Homepage**: https://ti-pft.netlify.app/ - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-10-22 - **Last Updated**: 2022-10-22 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # 常规船舶静水力学、水动力学计算 (ti-pft) 常规船舶静水力学、水动力学计算项目。 [![ti-pft](https://img.shields.io/badge/ti--pft-v0.9.10-blueviolet)][1] [![ford](https://img.shields.io/badge/Docs-FORD-ff69b4)](https://ti-pft.netlify.app/) [![license](https://img.shields.io/badge/License-closed--source-important)](LICENSE) [![wakatime](https://wakatime.com/badge/user/ca8e3153-da86-47e8-ba89-1fac0c842c19/project/fb398653-5c52-4c3e-ae11-e2960314f054.svg)][4] [![fpm](https://img.shields.io/badge/Fortran--lang/fpm-^0.6.0-blue)][3] [![Compiler](https://img.shields.io/badge/Compiler-GFortran^10.3.0-brightgreen)][5] [1]: https://gitee.com/ship-motions/ti-pft [4]: https://wakatime.com/@zoziha/projects/inhdpplrdg [5]: https://fortran-lang.org/compilers ## 依赖 - MSC.Patran/[Gmsh][8]:创建船壳网格; - [Fortran-lang/fpm][3] >= 0.6.0:构建代码; - [GNU/GCC-Fortran][5] >= 10.3.0:编译器; - [OpenBLAS][6]:线性代数库。 [6]: https://www.openblas.net/ [8]: https://gmsh.info/ ### 使用 MSYS2 环境安装依赖 如果你恰好使用 [Windows-MSYS2][9] 环境,可以使用以下命令便捷地安装依赖: ```bash pacman -S mingw-w64-ucrt-x86_64-gcc-fortran pacman -S mingw-w64-ucrt-x86_64-fpm pacman -S mingw-w64-ucrt-x86_64-openblas ``` [9]: https://www.msys2.org/ ## 使用 [Fortran-lang/fpm][3] 运行 ```sh fpm run -- static -C example/case1 # 运行子命令:静水力学计算 fpm run -- motion -C example/case3 -U # 运行子命令:无界流水动力计算 fpm install --profile release --prefix # 安装 release 版本的 `ti-pft` 到指定目录 ``` [3]: https://github.com/fortran-lang/fpm ## 使用 [FORD][7] 构建文档 构建 FORD 文档: ```sh ford FORD-project-file.md start ./doc/API-html/index.html # Windows 打开网页 ``` [7]: https://github.com/Fortran-FOSS-Programmers/ford