# nstokes [![Build Status](https://travis-ci.org/ISCDtoolbox/NavierStokes.svg?branch=master)](https://travis-ci.org/ISCDtoolbox/NavierStokes)
Nstokes is a finite element solver for Stokes and Navier-Stokes incompressible flow problems in two and three dimensions.
#### Installation
1. you will need to install the [ISCD Commons Library](https://github.com/ISCDtoolbox/Commons) on your system.
Please refer to the instructions provided on the ISCD Commons Library page in order to install this library.
2. download the zip archive of NavierStokes or clone this repository:
` git clone https://github.com/ISCDtoolbox/NavierStokes.git `
navigate to the downloaded directory:
` cd NavierStokes `
then create build directory and compile the project using cmake
```
mkdir build
cd build
cmake ..
make
make install
```
#### Usage
After compiling nstokes as described above, you should have an executable file in your $HOME/bin directory. If your PATH variable is correctly set to this directory, nstokes can be called with the following syntax:
usage: nstokes [+/-v | -h | -N] [-dt step] [-mt val] [-nt n] [-n nit] [-r res] [-t typ] [-ts n] source[.mesh] [-p param[.nstokes]] [-s data[.sol]] [-o output[.sol]]
The square braces indicate optional arguments. Some commands have flags, some others do not.
The options and flags are:
```
--help show the syntax and exit.
--version show the version and date of release and exit.
-N Navier-Stokes solver (default Stokes)
-dt step time step (time units)
-mt val max time (time units)
-nt n number of time steps
-n nit number of iterations max for convergence
-r res value of the residual (Krylov space) for convergence
-t typ specify the type of FE space: 1: P1bP1(*), 2: P2P1
-v suppress any message (for use with function call).
+v increase the verbosity level for output.
-w save vorticity file.
source.mesh name of the mesh file
param.nstokes name of file containing fluid parameters
data.sol name of file containing the initial solution or boundary conditions
output.sol name of the output file (velocity+pressure)
```
A full description of all parameters and options that can be specified in the command line or in a parameter file [file.nstokes] can be found in the project [wiki](https://github.com/ISCDtoolbox/NavierStokes/wiki).
#### Quickstart
You can test the installation and look at examples by entering the [demos](demos) directory and running the program:
cd demos/2d
nstokes cavity.mesh # or equivalently: nstokes cavity.mesh -p cavity.nstokes -o cavity.sol
that will produce an output that will look like:
```
user:~/code/NavierStokes/demos/2d$ nstokes cavity.mesh
- NSTOKES, Release 5.2a, Jan. 29, 2016
(C) Copyright 2006- , ICS-SU
- LOADING DATA
cavity.mesh: 555 vertices, 74 edges, 1034 triangles
cavity.nstokes: 2 parameters
- COMPLETED: 0.002s
** MODULE NSTOKES: 5.2a
Matrix and right-hand side assembly
Solving linear system:
pressure: res=6.862905e-07, nit=36
velocity: res=7.920541e-07, nit=26
** COMPLETED: 0.120s
- WRITING DATA
cavity.solb: 555 data vectors
- COMPLETED: 0.008s
** Cumulative time: 0.130s.
```
#### Authors & contributors
* nstokes has been initiated by Thi Thu Cuc Bui, Dena Kazerani, Thi Thanh Mai Ta and Pascal Frey (Université Pierre et Marie Curie).
* Contributors to this project are warmly welcomed.
#### License
nstokes is given under the [terms of the GNU Lesser General Public License] (LICENSE.md).
没有合适的资源?快使用搜索试试~ 我知道了~
NavierStokes:Navier Stokes方程的求解器
共20个文件
c:12个
h:2个
license:1个
5星 · 超过95%的资源 需积分: 32 3 下载量 73 浏览量
2021-04-27
13:06:54
上传
评论
收藏 62KB ZIP 举报
温馨提示
sto Nstokes是二维和三维二维Stokes和Navier-Stokes不可压缩流问题的有限元求解器。 安装 您将需要在系统上安装 。 请参阅ISCD Commons Library页面上提供的说明以安装此库。 下载NavierStokes的zip存档或克隆此存储库: git clone https://github.com/ISCDtoolbox/NavierStokes.git 导航到下载的目录: cd NavierStokes 然后创建构建目录并使用cmake编译项目 mkdir build cd build cmake .. make make install 用法 如上所述编译nstokes之后,您应该在$ HOME / bin目录中有一个可执行文件。 如果您的PATH变量正确设置为此目录,则可以使用以下语法调用nstokes: usage: nstokes
资源详情
资源评论
资源推荐
收起资源包目录
NavierStokes-master.zip (20个子文件)
NavierStokes-master
.travis.yml 372B
LICENSE 34KB
README.md 4KB
demos
2d
cavity.mesh 26KB
cavity.nstokes 98B
CMakeLists.txt 972B
sources
hash.c 8KB
advect_3d.c 11KB
ns_calls.c 6KB
inout.c 10KB
nstokes1_2d.c 22KB
ns_calls.h 463B
nstokes.c 19KB
vorticity_2d.c 3KB
vorticity_3d.c 170B
nstokes1_3d.c 25KB
nstokes.h 3KB
advect_2d.c 9KB
packing.c 11KB
tools.c 8KB
共 20 条
- 1
biuh
- 粉丝: 23
- 资源: 4737
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- 基于SpringBoot+Vue3快速开发平台、自研工作流引擎源码设计.zip
- docker安装部署全流程
- 基于树莓派的人脸识别系统python源码+项目部署说明+超详细代码注释.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Python和R爬取分析赶集网北京二手房数据.zip
- Java知识体系最强总结(2021版).txt
- Python知识点Python知识点Python知识点Python知识点Python知识点PythonPython知识点.txt
- Java开发基于seetaface6的人脸识别(活体检测)的封装源码.zip
- JSP在线失物招领管理平台源码.zip
- JSP在线旅游美食展现管理系统源码.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论1