边界条件函数所在位置 void NSSolverStruct::Boundary(Grid* gridIn)(NSSolverStruct.cpp)
边界条件变量定义所在namespace PHSPACE中(BC.h中)
添加入射激波所需边界条件
step 1 BC.h中添加
step 2 NSSolverStruct.h中
step 3 void NSSolverStruct::Boundary(Grid *gridIn) 中
step 4 创建函数(内容复制inflowbc3d中)
step 5 修改参数 将constanbc3d函数中变量修改为波后参数
激波前后关系式可见 code 文件夹下 obiqueshock.m
step6 在turb求解器下调用此边界条件void TurbSolverStr::Boundary(Grid *gridIn)中
在风雷计算中需要手动改边界条件 为991 即可开始计算
int nBoundaryConditons = 4; string bcName = "BCWall"; { int bcType = 2; } string bcName = "BCFarfield"; { int bcType = 991; } string bcName = "BCInflow"; { int bcType = 5; } string bcName = "BCOutflow"; { int bcType = 6; }
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。