有算过水锤的吗
-
@李东岳 老师您好,我用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