边界条件及初始条件

此波浪算例所需的初始条件有alpha.water p_rgh U

1、alpha.water.orig文件

$ cat 0/alpha.water.orig
...
FoamFile
{version     2.0;format      ascii;class       volScalarField;location    "0";object      alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //dimensions      [0 0 0 0 0 0 0];internalField   uniform 0;boundaryField
{#includeEtc "caseDicts/setConstraintTypes""(right|bottom)"{type            zeroGradient;}left{type            waveAlpha; //造波边界,与waves2Foam类似,均为waveAlpha,不过所需的参数不同。U               U;inletOutlet     true;//猜测此项表示此边界可以允许流体进出}top{type            inletOutlet;inletValue      uniform 0;value           uniform 0;}
}// ************************************************************************* //

其中waveAlpha类型中的inletOutlet参数不太理解,于是查看了该边界条件的定义文件。
通过以下命令:

$ grep -rn waveAlpha $FOAM_SRC
...
/opt/openfoam8/src/waves/derivedFvPatchFields/waveAlpha/waveAlphaFvPatchScalarField.H:28:    This boundary condition provides a waveAlpha condition. This sets the phase
...

找到源代码路径,然后打开查看文件头,其中会有该边界条件的描述。此处引用过来

Description
This boundary condition provides a waveAlpha condition. This sets the phase
fraction to that specified by a superposition of wave models. All the
wave modelling parameters are obtained from a centrally registered
waveSuperposition class.

Flow reversal will occur in the event that the amplitude of the velocity
oscillation is greater than the mean flow. This triggers special handling,
the form of which depends on the inletOutlet flag and whether a wave
pressure condition is being used.If a wave pressure condition is not being used, the inletOutlet switches
between a fixedValue and an inletOutlet condition, with the value given by
the wave model. If fixedValue, the result may be more accurate, but it
might also be unstable.If a wave pressure condition is being used, then the normal phase fraction
condition becomes fixedGradient on outlet faces. This gradient is
calculated numerically by evaluating the wave model on both the patch face
and the adjacent cell.

没太理解。

2、p_rgh文件

$ cat 0/p_rgh
...
FoamFile
{format      ascii;class       volScalarField;location    "0";object      p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //dimensions      [1 -1 -2 0 0 0 0];internalField   uniform 0;boundaryField
{#includeEtc "caseDicts/setConstraintTypes""(left|right|bottom)"{type            fixedFluxPressure;value           uniform 0;}top{type            totalPressure;p0              uniform 0;}
}// ************************************************************************* //

都是些常规的边界条件。

3、U.org文件

$ cat 0/U.org
...
FoamFile
{format      ascii;class       volVectorField;location    "0";object      U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //dimensions      [0 1 -1 0 0 0 0];internalField   uniform (2 0 0);boundaryField
{#includeEtc "caseDicts/setConstraintTypes"left{type            waveVelocity; //波浪速度}right{type            outletPhaseMeanVelocity;UnMean          2; //流速alpha           alpha.water; //指定水,而不是空气}top{type            pressureInletOutletVelocity;value           uniform (0 0 0);}bottom{type            noSlip;}
}// ************************************************************************* //

0文件夹下初始条件在setWave命令作用下,生成计算中使用的初始条件。

openfoam v8 波浪算例学习日记: 5.边界条件及初始条件相关推荐

  1. openfoam v8 波浪算例学习日记: 6.运行算例

    算例运行 在setWave命令之后就是算例运行,Allrun中在运行求解器之前进行了域分解命令decomposePar来并行计算. decomposePar读取system/decomposeParD ...

  2. openfoam v8 波浪算例学习日记: 3.手动运行算例

    openfoam8 wave算例学习记录 手动运行算例 网格处理 Allrun里第一步为blockMesh划分网格. 此命令读取system/blockMeshDict字典文件.以下为该字典文件内容( ...

  3. 【OpenFOAM】——OpenFOAM入门算例学习

    1  明确目标--为啥费老大劲儿学习OpenFOAM 学习OpenFOAM主要出于课题需要,希望实现以下几个目标: l  [ ]学会用SnappyHexMesh生成高质量网格: l  [ ]学习使用O ...

  4. 非静压模型NHWAVE学习(7)——波浪变形模拟算例学习(Wave transformation over an elliptical shoal)

    波浪变形模拟算例学习(Wave transformation over an elliptical shoal) 算例简介 地形与网格 运行参数配置 模型的编译运行 模拟结果处理 本blog介绍了NH ...

  5. 非静压模型NHWAVE学习(9)——波浪破碎RANS紊流模型算例学习(Wave Breaking on a Planar Beach)

    NHWAVE波浪破碎RANS紊流模型算例学习(Wave Breaking on a Planar Beach) 算例简介 地形与网格 运行参数配置 模型的编译运行 模拟结果 本blog介绍了NHWAV ...

  6. 非静压模型NHWAVE学习(6)——波浪模拟算例学习(Periodic wave over a submerged bar)

    波浪模拟算例学习(Periodic wave over a submerged bar) 算例简介 网格与地形 运行参数配置 模型的编译运行及模拟结果 本blog介绍了NHWAVE模型自带算例Peri ...

  7. 非静压模型NHWAVE学习(8)——波浪破碎模拟算例学习(Breaking solitary wave run-up)

    NHWAVE波浪破碎模拟算例学习(Breaking solitary wave run-up) 算例简介 地形与网格 运行参数配置 模型的编译运行 模拟结果处理 本blog介绍了NHWAVE模型自带算 ...

  8. 非静压模型NHWAVE学习(10)——海底滑坡引体发涌浪的模拟算例(Three-dimensional rigid submarine slide)

    NHWAVE海底滑坡体算例学习(Three-dimensional rigid submarine slide) 算例简介 地形与网格 运行参数配置 模型的编译运行 模拟结果 本blog介绍了NHWA ...

  9. SUNTANS模型学习(7)——学习simplified river plume算例

    学习simplified river plume算例 简介 网格配置 定解条件设置 初始条件设置 边界条件设置 开边界处的通量计算(OpenBoundaryFluxes) 开边界处的速度.水位(Bou ...

最新文章

  1. 公有链和联盟链的本质不同
  2. 深度学习对抗样本的八个误解与事实
  3. 第十九章:集合视图(二十一)
  4. 用户故事与敏捷方法阅读笔记03
  5. 数据结构(7)—— 排序总结
  6. 如何在linux下启动和关闭oracle服务
  7. java学习日记之小技巧(跟着变量走一走)
  8. ASP.NET:关于.net中的runat
  9. m3u8流媒体下载 swift
  10. MTK和Android有区别,Android系统 下一个山寨MTK的代名词
  11. 数字图像处理实验03——图像几何变换
  12. 七彩虹将星 X15 AT 2023 参数配置 七彩虹将星 X15 AT 评测
  13. Android 优化开机启动
  14. [拿来就用不经意识流] 谷歌多汁小萝莉的使用问题
  15. 筷云解读企业上云:为什么上云?选什么上云?
  16. 科技互联网相关的微信公众号图文应该怎样排版?
  17. mysql编写1到n的奇数和_输入一整数n,输出1~n之间的奇数和(若n为奇数则包括n) 编程...
  18. mybatis查询时间段sql语句和DATE_FORMAT
  19. WPF——ComboBox绑定XmlDataProvider数据
  20. 教师计算机能力提升工程总结,博达中学校教师信息技术应用能力提升工程工作总结...

热门文章

  1. 计算机组成原理往届的试题,【历年真题】全国2019年10月自考《计算机组成原理》试题真题与答案02318...
  2. Day09 字符串2(一生之敌,KMP)
  3. [原创][vb6]仙剑3外传的存档修改器--补充说明1设计图示
  4. OPPOK7x和oppoa92s哪个好?
  5. 解决几乎任何机器学习问题(完整翻译)
  6. 实现两视频叠加时上层剪辑透明部分不遮挡下层内容的两种方案
  7. 【数据结构】文件压缩项目
  8. 转:天若有情天亦老,人若多情死的早
  9. C++生成 桔灯 Aether仪器的 *.atts 格式 时间域文件
  10. 云盘大规模关停真正原因:不赚钱