Mac下VSCode+LaTeX的解决方案
安装VSCodeVisual Studio Code - Code Editing. Redefinedcode.visualstudio.com/ 在visual studio code官网下载电脑对应版本的安装包并安装 安装VSCode插件 LaTeX Workshop为必装,其他插件可自行选择安装 安装MacTex在Mac上使用LaTeX的话,除非只使用最基本的语法可以安装轻量化的BasicTex(甚至连公式都不需要输入的情况,应该很少人这样),MacTex是唯一选择。官网解释如下 https://tug.org/mactex/tug.org/mactex/ MacTeX - TeX Users Group MacTeX - TeX Users Grouptug.org/mactex/ 在这里下载安装MacTex.pkg即可,一共会安装5个软件,除了MacTex以外, TeXShop LaTeXiT TeX Live Utility BibDesk hintview 更简单的安装方式 Homebrew。用mac不用homebrew就相当于没...
OF4中Euler-Lagrangian模拟颗粒出现在奇怪的位置
主要是因为 OF4 中的颗粒的interpolation在靠近壁面的时候和壁面的边界条件no-slip同时起作用,然后就会造成颗粒的位置出现在domain外,或者卡在那边。 解决办法,使用 cellPointWallModified 用于parcel的速度的interpolation。 原帖子1 https://www.cfd-online.com/Forums/openfoam-solving/228752-strange-stuck-particles-rebound-wall-mppicfoam.htm 原帖子2: https://bugs.openfoam.org/view.php?id=2442
LES网格质量检查
源自Wolfdynamic的教程材料。 1.
OF4中添加某个面的均值的计算
0.OF4 中添加计算某个面的平均速度等值的方法。123456789101112131415161718192021patchAvgU{ type surfaceRegion; libs ("libfieldFunctionObjects.so"); writeControl writeTime; log true; // 核心修正点:必须显式告诉它是否写入面场数据 writeFields false; surfaceFormat null; // 如果不需要导出面几何,设为 null regionType patch; name outlet; // 确保这个名字在 constant/polyMesh/boundary 中存在 operation areaAverage; fields ( U...
OF4中thermophysicalProperties的设置以及多组分的气体的设置
今天在搞一个项目中的关于气体成分的设置 Gas composition H2 Vol% 31.48 N2 Vol% 0.15 CH4 Vol% 3.2 CO2 Vol% 18.80 CO Vol% 46.1 C2H6 Vol% 0.1 C2H2 Vol% 0.14 C3H8 Vol% 0.03 Gas yield Nm3/h 25 Density kg/m3 0.94 下面是在REFPROP中按照当前的组分设置的混合物的到的热物性,用作参考和对比。 thermophysicalProperties文件的设置根据你的solver支持的情况,可以使用banana大法,看一下你的ThermoType都支持什么配置。我支持如下配置 123456789101112131415161718192021222324252627282930313233343536type mixture transport thermo equa...
OF中的Constructors中的两个function的意义
感谢AI。。 1234567891011121314151617181920212223242526272829303132333435User: template<class CloudType>Foam::IVT41_SphereDragForceBPG_typeID<CloudType>::IVT41_SphereDragForceBPG_typeID( CloudType& owner, const fvMesh& mesh, const dictionary& dict): ParticleForce<CloudType>(owner, mesh, dict, typeName, true), CunnCorr_(this->coeffs().lookup("CunninghamCorrection")), WallCorr_(this->coeffs().lookup("WallCorrelation")), TargetTypeID...
基于OpenFOAM-4添加数据类型
原始目的是基于已有的injection模型中添加lookuptable的功能。 然后基于KinematicLookupTableInjection,ThermoLookupTableInjection, ReactingLookupTableInjection, ReactingMultiphaseLookupTableInjection中的数据类型的简历方式,建立了这个模型,名为compositionData,主要目的就是在于可以在injection的时候定义parcel的组分Y的相关变量。 compositionData.C 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172/*---------------------------------------------------------------------------*\ ========= ...
macOS中使用vscode打开无扩展名文件
参考: https://blog.csdn.net/Enternallove/article/details/130740495 1osascript -e 'id of app "Visual Studio Code"' 2.安装duty 1brew install duti 3.设置vscode默认打开无拓展名文件 1duti -s com.microsoft.VSCode public.data all
在CollisionCloud单独添加模型
基与OpenFOAM 13,我想单独在collidingParcel中添加一个壁面碰撞模型的话,进入下面的文件中。 1~/OpenFOAM/abcxxx-13/src/IVT13_src/lagrangian/parcel/parcels/derived/collidingParcel/makeCollidingParcelSubmodels.C 因为每个cloud在使用submodel的时候都需要有一个makeXXXmodels.H。那么你单独为这个cloud生成一个makeXXXmodels.H 即可。例如我的情况,我需要单独生成一个考虑rotation的壁面模型。而momentumparcel中并没有考虑omega,而且我也不想在其中添加omega这个变量。而在Collidingparcel中,直接就有omega,所以我想在collidingparcel中添加这个模型。但是如果我修改原本的makeParcelPatchInteractionModels_rotation.H的话,那么所有引用此文件的cloud都有这个模型。但是并不是所有cloud都有omega这个变量。因...
OpenFOAM-wall-interaction-change
之前听同事说了这个情况,现在找到了争取,记录一下。 原网页:https://bugs.openfoam.org/view.php?id=3299 View Issue Details ID Project Category View Status Date Submitted Last Update 0003299 OpenFOAM Bug public 2019-06-28 08:53 2019-06-28 12:27 Reporter pantelis Assigned To Priority normal Severity minor Reproducibility always Status new Resolution open Platform Linux OS Centos OS Version 6.5 Summary 0003299: Incorrect particle-wall interaction in OpenFOAM 6 Description I am...
VSCode修改terminal颜色
vscode终端背景颜色修改以及报错信息颜色修改 转自: https://blog.csdn.net/m0_73832962/article/details/132202467, 侵犯 这里提供vscode终端背景颜色的修改和vscode终端报错提示信息颜色的修改方法 (1)vscode终端背景颜色优化步骤一,ctrl+shift+p打开设置搜索workbench然后点击打开下图的红色箭头指出文件 步骤二,文件拖到最后找到红框内容 步骤3,点击这个链接Base16 Terminal Colors for Visual Studio Code选择喜欢的风格,然后点击复制 复制的信息粘贴到步骤二图中的大括号中就好了,然后保存 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879"terminal.background"...
test markdown image
111 222 333 444 1.
OpenFOAM 13 Duplicate Entry
方法来自:【实用技巧】手把手教你解决 Duplicate Entry 最近开始转战OF13. 开始倒腾远古code。之前对于这种问题都不是很在意,能跑就行。现在开始对于这些小毛病也要小修小补了。 如同上面的链接介绍的解释方法。Duplicate Entry其实就是因为在你自己编译的库中有与原始OF相同的模型。所以在新的库里面直接不编译那些重复的模型即可。 在上面的公众号的另外一期中 https://mp.weixin.qq.com/s/PasRwdmAEemPYeQ3fYRokA 介绍了如何在不修改原始solver的情况下调用自己编译的库的解决办法。这个也是之前提到的在OF13中调用自己编译的库的方法。都是相同的。直接在算例 system/controDict里面最后一行,新起一行,添加 12345libs ( "libmyIncompressibleTurbulenceModels.so"); 注意末尾的分号。 祝收敛
Hello World
Welcome to Hexo! This is your very first post. Check documentation for more info. If you get any problems when using Hexo, you can find the answer in troubleshooting or you can ask me on GitHub. Quick StartCreate a new post1$ hexo new "My New Post" More info: Writing Run server1$ hexo server More info: Server Generate static files1$ hexo generate More info: Generating Deploy to remote sites1$ hexo deploy More info: Deployment