Your browser does not seem to support JavaScript. As a result, your viewing experience will be diminished, and you have been placed in read-only mode.
Please download a browser that supports JavaScript, or enable it if it's disabled (i.e. NoScript).
也可能需要模版参数特化的某个函数,指定的模版参数有问题,希望有用哈,我遇到的问题是,在自定义基类中把: BasicTurbulenceModel::correctNut(); 换成了TurbulenceModel::correctNut(); 解决方法是传入 BasicTurbulenceModel和TurbulenceModel两个模版参数, 或者BasicTurbulenceModel::correctNut();只在子类中出现
你好。想问一下在openfoam中离散过程中对于面插值的中心差分格式的源文件代码openfoam/src/finiteVolume/interpolation/surfaceInterpolation/surfaceInterpolationScheme/surfaceInterpolationScheme.C 其中对于点乘面差值格式的代码形式主要由Foam::surfaceInterpolationScheme<Type>::dotInterpolate 函数决定的,我现在的主要想法是想通过修正插值格式在代码sfi[fi] = Sfi[fi] & (lambda[fi]*(vfi[P[fi]] - vfi[N[fi]]) + vfi[N[fi]] ) 后面加体心梯度项点乘偏移量向量,如图所示: b2b2b5cc-a725-48e9-ad35-ba8bc36d7208-1675996388057.png