Random blocking method in OpenFOAM through codedFixedValue
This boundary condition is suitable for diffuser modeling in indoor simulations.inlet
{
type codedFixedValue;
value uniform (0 0 0);
redire...
Installing Metis for precompiled OpenFOAM-v2112
For OpenFOAM-v2112 installed using apt, here I share a quick guide to install metis.First, obtain the metis-5.1 source code and compile it.$ make config
$ make
$ sudo make install The last commad c...
buoyantBoussinesqSimpleFoam代码解析及使用心得
原创文章,原载于多相流在线公众号buoyantBoussinesqSimpleFoam代码解析及使用心得在对有浮升力存在的换热问题进行求解时,常常使用Boussinesq假设将问题简化,在保持不可压求解相对便利性的同时更在一定程度上缓解方程组的非线性。随着计算机算力的不断提高,基于可压流对浮升力作用下的换热问题进行求解已不再昂贵。然而,一方面,在很多领域,Boussinesq假设的沿用久经考...
OpenFOAM入门指北
原创文章,原载于多相流在线公众号OpenFOAM入门指北OpenFOAM因其开放性和强大的可扩展性深受CFD研究者的喜爱,但是同样闻名的还有它陡峭的学习曲线,入门较为困难。结合笔者的切身体会,初来乍到至少要面临四重考验:缺少教程。和其他著名的商业CFD软件(如Ansys FLUENT, STAR-CCM+等)相比,OpenFOAM缺少多样化的用户支持,除了官方仅有的几本简明指南外,可参考的教...
Bash Script for Extracting Rows from CSV Files and Combine them by Column: An Example
#!/bin/bash
for i in 0 15 30 45 60 75
do
dir=Pedersen_$i
cd $dir
pvpython ../Crate.py
for j in 4 5 6 7 8
do
tail -n 1 file_${j}.csv >> ${dir}.csv #Extract the...