wedge 边界条件调研
Begin关键词:Axisymmetric Wedge boundary condition and the math behind it??????? – CFD Online Discussion Forums (cfd-online.com) I don’t have any documented reference about how wedges work in OpenFOAM, but as far as I know, the concept is that the wedge boundary is a special type of cyclic boundary condition.The difference is that: Cyclic boundaries assume that the adjacent cell to the boundary will be part of a domain and not part of the other corresponding cyclic boundary (that’s one of the r...
overset 重叠网格在 OpenFOAM 中的计算流程(v2406)
v2406-overset整体计算流程twoSimpleRotorAllrun.pre12345678910111213141516171819202122#!/bin/shcd "${0%/*}" || exit # Run from this directory. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions#------------------------------------------------------------------------------runApplication blockMesh# Select cellSetsrunApplication -s 1 topoSetrunApplication subsetMesh box -patch hole -overwrite# Select cellSetsrunApplicat...
p 与 p_rgh:静水压力处理的两条路线
101OpenFOAM: User Guide: Hydrostatic pressure effects For cases that the hydrostatic pressure contribution ρ(g∙h) is important, e.g. for buoyant and multiphase cases, it is numerically convenient to solve for an alternative pressure defined by p′=p−ρ(g∙h). In OpenFOAM solver applications the p′ pressure term is named p_rgh. The momentum equation ∂∂t(ρu)+∇∙(ρu⊗u)−∇∙(μeff∇u)=−∇p+ρg is transformed to use p′: p′=p−ρ(g∙h). After the following substititions: −p−∇p=−p′−ρ(g∙h)...
redistributePar vs reconstructPar
redistributePar_VS_reconstructPar在 OpenFOAM 中,redistributePar 和 reconstructPar 都是处理并行计算数据的工具,但它们的方向和功能强度完全不同。 简单来说: reconstructPar 是做“合体”的(把分散的数据拼回一个整体)。 redistributePar 是做“重组”的(不仅能合体,还能拆分,还能重新分配)。 以下是详细的对比: 1. 功能核心区别 特性 reconstructPar (传统/单一) redistributePar (现代/全能) 核心动作 合并 (Merge) 再分配 (Decompose & Reconstruct & Balance) 数据流向 processor* $\rightarrow$ 0, constant, system processor* $\leftrightarrow$ processor* 或者 processor* $\leftrightarrow$ 单核 主要用途 算完后把结果合并,方便 ...
splitMesh 与 splitMeshRegions
OpenFOAM: Manual Pages: splitMesh 02 chtMultiRegionFoam求解器- splitMesh - 哔哩哔哩 OpenFOAM-v2406采用splitMeshRegions的一个例子。 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163...
stitchMesh 官方案例流程
https://www.openfoam.com/news/main-news/openfoam-v1712/pre-processing stitchMesh The stitchMesh utility stitches two volumetric meshes by manipulating the interfacing faces to create topologically conformal interface.stitchMesh 工具通过调整相接面的网格面来拼接两个体网格,以创建在拓扑上相容的接口。 Use of the utility is limited on situation with simple patches, as the only information processed are the faces, no edges or line elements are taken into the account.由于该实用工具仅处理面信息,而忽略了边和线元素,因此它仅适用于简单的补丁情况。 Further user should make ...
subsetMesh 实测:twoSimpleRotor 子网格提取
实例:twoSimpleRotor1runApplication subsetMesh box -patch hole -overwrite 命令拆解: $$\underbrace{\texttt{runApplication subsetMesh}}{\textcolor{red}{\text{主程序}}};\underbrace{\texttt{box}}{\textcolor{blue}{\text{参数1: cellSet集合名}}};\underbrace{\texttt{-patch hole}}_{\textcolor{green}{\text{参数2: 背景网格边界名}}};\texttt{-overwrite}$$ 可以取消-overwrite参数,这样网格信息会写入新的时间步,结果见下: subsetMesh和stitchMesh的区别这相当于问:“切蛋糕”和“缝衣服”有什么区别? subsetMesh 和 stitchMesh 是 OpenFOAM 网格操作中两个作用完全相反、用途截然不同的工具。 1. subsetMesh:切蛋糕(做减法)它的核心...
timeVaryingMappedFixedValue 时变映射入口条件
OpenFOAM: API Guide: timeVaryingMappedFixedValueFvPatchField< Type > Class Template Reference Non-uniform time-varying boundary conditions in OpenFOAM : r/CFD 使用How to quickly export points for a timeVaryingFixedValue boundary in OpenFOAM – Alberto Passalacqua timeVaryingMappedFixedValueFvPatchField< Type > Class Template ReferenceThis boundary condition interpolates values from a set of supplied points in space and time. points data structure: points: pointField of location...
zoneGenerator 与 CFD 直接网格分区
OpenFOAM v13更新详情-8:更优雅的网格操控之道 在之前的OpenFOAM版本中,网格区域(pointZone、cellZone、faceZone)的管理往往需要多个工具配合使用,操作流程相对繁琐。v13版本全新开发的动态区域生成系统彻底改变了这一局面。 核心亮点:新的zoneGenerator能一键生成包含pointZone、cellZone、faceZone任意组合的zoneSet,再也不用手动挨个创建区域了。 具体来说,该系统包含了多个zoneGenerator,用于创建和控制动态区域。另外,faceZone的flipMap(方向翻转映射)也迎来了人性化调整:现在它变成可选配置了,如果后续需要调整方向,用flipMap zone generator就能轻松补上。再也不用为了一个可选的方向参数,在配置文件里写一堆冗余代码了。 代码层面的改进主要体现在commit da974812、b4339ca4和a578e1e8等提交中,引入了全新的动态区域生成架构。 CFD direct Introhttps://cfd.direct/openfoam/free-softwar...
部署手册实测:MacBook 环境从零到上线
今天在 MacBook(macOS 12.7.4, Intel)上把博客环境从零跑通了一遍,顺手把过程沉淀成仓库里的 DEPLOYMENT.md。这篇是当日实录的快照,备忘 + 验证部署链路。 环境 项 值 系统 macOS 12.7.4 (Monterey), Intel x86_64 Node.js v22.23.2(nvm) npm 10.9.8 git 2.37.1(Apple Git) Hexo 6.3.0(仓库锁定) 踩过的坑(按顺序)1. themes/next 是空的裸 gitlink 问题,克隆仓库不带文件。补: 12git clone https://github.com/next-theme/hexo-theme-next.git themes/nextgit -C themes/next checkout v8.20.0 2. macOS 没有 setsid后台常驻预览在 Mac 上用 nohup npx hexo server ... & 即可,不需要(也没有)setsid。 3. SSH key 是 Gitee ...
