好的,谢谢您!我找到问题所在了,模拟稳定之后就可以正常运算了。@ice_flow
我关于Q和Lambda2还有一个问题:
我的入口采用固定流速在一个粗网格上模拟了一下,发现模拟结果就能较为清晰的展现涡旋的结构。
可是当我使用空渠道进行数值模拟,得到一组携带湍流特性的流速断面;然后作为添加了阻水建筑物后的模型的流速进口,计算出来Q和Lambda2总是展示出大量的稀碎的涡!
我想问一下怎么才能得到清晰明了的涡旋结构图呢?希望能得到大佬们的解答!
X
xumengxin
@xumengxin
帖子
-
如何计算Lambda2 -
如何计算Lambda2我现在用的单位是m,您的意思是改成cm或者mm,让流速的数值更大,是吗?@ice_flow
-
如何计算Lambda2我使用 postProcess -func Lambda2命令计算Lambda2,报错了
--> FOAM FATAL ERROR: Eigenvalue calculation failed for tensor: (0 -6.54405e-64 0 -6.54405e-64 0 -3.74512e-61 0 -3.79365e-61 0) From function Foam::vector Foam::eigenValues(const tensor&) in file primitives/Tensor/tensor/tensor.C at line 112.
各位老师,我应该如何修改呀?
-
出口如何使用固定水位@黒洛克 好的,谢谢
-
出口如何使用固定水位各位老师,我现在使用interFoam求解器进行水动力模拟,出口水位一直偏低,我想把出口设置为固定水位,U、p、alpha.water等参数文件应该如何设置呀?
-
使用fieldAverage,求解器正常运行,但没有输出fieldAverage工我一直认为会在postProcessing文件夹下生成一个目标值的文件。谢谢您!@ice_flow
-
使用fieldAverage,求解器正常运行,但没有输出fieldAverage工我好像明白了,平均值是结果文件中的pmean和umean
-
使用fieldAverage,求解器正常运行,但没有输出fieldAverage工@ice_flow
!还是不行,老师
-
使用fieldAverage,求解器正常运行,但没有输出fieldAverage工各位老师,我想问一下fieldAverage应该怎么用呀,我使用的是interfoam求解器,想计算一下全域的平均压强,但是设置好fieldAverage后,在postProcessing中并没有相应的结果
controlDict/*--------------------------------*- C++ -*----------------------------------*\ ========= | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox \\ / O peration | Website: https://openfoam.org \\ / A nd | Version: 10 \\/ M anipulation | \*---------------------------------------------------------------------------*/ FoamFile { format ascii; class dictionary; location "system"; object controlDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // application pimpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 0.01; deltaT 0.001; writeControl timeStep; writeInterval 1; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true; functions { surfaces { type surfaces; libs ("libsampling.so"); writeControl timeStep; writeInterval 1; // 你可以根据需要设置间隔 surfaceFormat raw; fields (U); interpolationScheme cellPoint; surfaces ( zNormal { type cuttingPlane; planeType pointAndNormal; point (0.01 0.01 -0.12); // 切片的起始点 normal (1 0 0); // 切片法向量 interpolate true; // 是否进行插值 } ); } fieldAverage1 { type fieldAverage; libs ( "libfieldFunctionObjects.so" ); writeControl writeTime; timeStart 0; timeEnd 0.002; resetOnOutput false; fields ( U { mean on; prime2Mean off; base time; } ); } inletFlux { type surfaceFieldValue; libs ("libfieldFunctionObjects.so"); writeControl timeStep; log true; // Output field values as well writeFields false; regionType patch; name inlet; operation sum; fields ( phi ); } } // ************************************************************************* //
-
timeVaryingMappedFixedValue 是个好BC@星星星星晴 您好,请问timeVaryingMappedFixedValue具体如何使用呀