1 Star 1 Fork 0

xjtu-forge/mantaflow

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
dependencies
resources
scenes
source
fileio
gui
nopython
plugin
preprocessor
pwrapper
python
util
commonkernels.h
conjugategrad.cpp
conjugategrad.h
edgecollapse.cpp
edgecollapse.h
fastmarch.cpp
fastmarch.h
fluidsolver.cpp
fluidsolver.h
general.cpp
general.h
grid.cpp
grid.h
grid4d.cpp
grid4d.h
kernel.cpp
kernel.h
levelset.cpp
levelset.h
mesh.cpp
mesh.h
movingobs.cpp
movingobs.h
multigrid.cpp
multigrid.h
noisefield.cpp
noisefield.h
particle.cpp
particle.h
shapes.cpp
shapes.h
test.cpp
timing.cpp
timing.h
turbulencepart.cpp
turbulencepart.h
vortexpart.cpp
vortexpart.h
vortexsheet.cpp
vortexsheet.h
tensorflow
tools
.gitignore
.hgtags
CMakeLists.txt
Doxyfile.in
INSTALLING
LICENSE
README.md
克隆/下载
vortexpart.h 1.29 KB
一键复制 编辑 原始数据 按行查看 历史
Nils Thuerey 提交于 7年前 . license update
/******************************************************************************
*
* MantaFlow fluid solver framework
* Copyright 2011 Tobias Pfaff, Nils Thuerey
*
* This program is free software, distributed under the terms of the
* Apache License, Version 2.0
* http://www.apache.org/licenses/LICENSE-2.0
*
* Vortex particles
* (warning, the vortex methods are currently experimental, and not fully supported!)
*
******************************************************************************/
#ifndef _VORTEXPART_H
#define _VORTEXPART_H
#include "particle.h"
namespace Manta {
class Mesh;
struct VortexParticleData {
VortexParticleData() : pos(0.0),vorticity(0.0),sigma(0),flag(0) {}
VortexParticleData(const Vec3& p, const Vec3& v, Real sig) : pos(p),vorticity(v),sigma(sig),flag(0) {}
Vec3 pos, vorticity;
Real sigma;
int flag;
static ParticleBase::SystemType getType() { return ParticleBase::VORTEX; }
};
//! Vortex particles
PYTHON() class VortexParticleSystem : public ParticleSystem<VortexParticleData> {
public:
PYTHON() VortexParticleSystem(FluidSolver* parent);
PYTHON() void advectSelf(Real scale=1.0, int integrationMode=IntRK4);
PYTHON() void applyToMesh(Mesh& mesh, Real scale=1.0, int integrationMode=IntRK4);
virtual ParticleBase* clone();
};
} // namespace
#endif
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
C++
1
https://gitee.com/xjtu-forge/mantaflow.git
git@gitee.com:xjtu-forge/mantaflow.git
xjtu-forge
mantaflow
mantaflow
master

搜索帮助