下载安装包
根据你的操作系统选择相应的版本:
- Windows:从 https://github.com/meshcentral/mesh-central/releases 下载并安装,建议安装后重启系统。
- macOS:从 https://github.com/meshcentral/mesh-central 下载并安装。
- Linux:从 https://github.com/meshcentral/mesh-central 下载并安装。
创建新项目
在安装的项目根目录下,创建一个新的项目文件:
mkdir -p mesh central cd mesh central touch ./config touch ./config/nodes.txt touch ./config/modes.txt touch ./config/meshes/ touch ./config/materials.txt touch ./config/elements.txt touch ./config/parameters.txt
创建 mesh 文件
在项目根目录下创建以下文件:
touch ./config/modes.txt touch ./config/meshes/1.stl touch ./config/meshes/2.stl touch ./config/meshes/3.stl
创建几个典型案例
在项目根目录下创建以下文件:
touch ./config/modes.txt touch ./config/meshes/1.stl touch ./config/meshes/2.stl touch ./config/meshes/3.stl
导入项目
在项目根目录下执行以下命令:
cp -r ./config/* . cd ./config
创建 mesh 文件
在项目根目录下创建以下文件:
touch ./config/modes.txt touch ./config/meshes/1.stl touch ./config/meshes/2.stl touch ./config/meshes/3.stl
导入数据
在项目根目录下执行以下命令:
cp -r ./data/* ./ cd ./data
定义参数
在参数文件中定义参数:
echo "nodes = 1" >> parameters.txt echo "elements = 2" >> parameters.txt echo "element_type = tetrahedron" >> parameters.txt echo "node_interval = 1" >> parameters.txt echo "element_interval = 1" >> parameters.txt echo "node_height = 1" >> parameters.txt echo "element_height = 5" >> parameters.txt echo "rotation = 0" >> parameters.txt echo "node_ring = 1" >> parameters.txt echo "element_ring = 1" >> parameters.txt echo "node_ring = 2" >> parameters.txt echo "element_ring = 2" >> parameters.txt
分析
在数据文件中执行以下命令:
echo "type = single_variable" >> data.txt echo "variable_name = stress" >> data.txt echo "num_elements = 1" >> data.txt echo "node_count = 2" >> data.txt echo "element_count = 5" >> data.txt
然后执行分析命令:
echo "run_analysis()" >> analysis.txt echo "compute()" >> analysis.txt echo "starting()" >> analysis.txt
查看结果
在数据文件中执行以下命令:
echo "results" >> results.txt echo "node_id" >> results.txt echo "element_id" >> results.txt echo "stress" >> results.txt
查看结果文件,检查分析结果,确保符合预期,如果有问题,回到导入参数和定义参数的步骤,调整参数,重新导入数据,重复分析。








京公网安备11000000000001号
京ICP备11000001号