有算过水锤的吗
-
@李东岳 老师您好,我用rhoPimpleFoam计算水击但是运行不了,不知道什么错误
p文件dimensions [1 -1 -2 0 0 0 0]; internalField uniform 5e+05; boundaryField { fixedWalls { type zeroGradient; } inlet { type fixedValue; value uniform 5e+05; } outlet { type zeroGradient; } frontAndBack { type empty; } }
U文件
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0.12 0 0); boundaryField { fixedWalls { type noSlip; } inlet { type zeroGradient; } outlet { type uniformFixedValue; uniformValue scale; scale { type linearRamp; start 0; duration 0.4; } value 2; } frontAndBack { type empty; } }
T文件
dimensions [0 0 0 1 0 0 0]; internalField uniform 20; boundaryField { fixedWalls { type fixedValue; value $internalField; } inlet { type fixedValue; value $internalField; } outlet { type fixedValue; value $internalField; } frontAndBack { type empty; } }
thermophysicalProperties
thermoType { type heRhoThermo; mixture pureMixture; transport const; thermo eConst; equationOfState rPolynomial; specie specie; energy sensibleInternalEnergy; } mixture { specie { molWeight 100; } equationOfState { C (0.001278 -2.1055e-06 3.9689e-09 4.3772e-13 -2.0225e-16); } thermodynamics { Cv 4185; Hf 0; } transport { mu 3.967e-05; Pr 1; } }
controlDict
application rhoPimpleFoam; startFrom startTime; startTime 0; stopAt endTime; endTime 0.4; deltaT 0.00001; writeControl timeStep; writeInterval 100; purgeWrite 0; writeFormat ascii; writePrecision 6; writeCompression off; timeFormat general; timePrecision 6; runTimeModifiable true;
下面是报错:
Create time Create mesh for time = 0 PIMPLE: No convergence criteria found PIMPLE: No corrector convergence criteria found Calculations will do 2 corrections PIMPLE: Operating solver in transient mode with 2 outer correctors Reading thermophysical properties Selecting thermodynamics package { type heRhoThermo; mixture pureMixture; transport const; thermo eConst; equationOfState rPolynomial; specie specie; energy sensibleInternalEnergy; } Reading field U --> FOAM FATAL IO ERROR: Expected a '(' while reading VectorSpace<Form, Cmpt, Ncmpts>, found on line 43 the label 2 file: /home/huliren/OpenFOAM/huliren-8/run/SHUJI/shuiji/0/U/boundaryField/outlet/value at line 43. From function Foam::Istream& Foam::Istream::readBegin(const char*) in file db/IOstreams/IOstreams/Istream.C at line 92. FOAM exiting
-
@李东岳 老师您好,我这个水击可以计算了,但是感觉结果不对阿,和我用fluent计算的结果差很多的。
第一个是阀门处的压力随时间变化
第二个是残差图
希望老师可以抽点时间帮看一下
file:///home/huliren/%E5%9B%BE%E7%89%87/2021-08-23%2020-19-33%20%E7%9A%84%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE.png
file:///home/huliren/%E5%9B%BE%E7%89%87/2021-08-23%2020-19-25%20%E7%9A%84%E5%B1%8F%E5%B9%95%E6%88%AA%E5%9B%BE.png