![]() |
sampledict error "keyword surfaces is undefined in dictionary"
Hello everyone,
I wanna compare a 2D flow's velocity profiles at different locations, but when I run sample command, there somethings wrong: // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Create time Create mesh for time = 0 --> FOAM FATAL IO ERROR: keyword surfaces is undefined in dictionary "/Users/of/OpenFOAM/fpapcocp/system/sampleDict" file: /Users/of/OpenFOAM/fpapcocp/system/sampleDict from line 20 to line 50. From function dictionary::lookupEntry(const word&, bool, bool) const in file db/dictionary/dictionary.C at line 395. FOAM exiting the sampleDict is followed: setFormat raw; interpolationScheme cellPoint; fields ( p U ); sets ( lineX1 { type uniform; axis distance; start (10 0 0); end (10 0.5 0); nPoints 100; } lineX2 { type uniform; axis distance; start (5 0 0); end (5 0.5 0); nPoints 100; } ); I don't know what's wrong,why there is information about surfaces? is it necesury to add surface? and how to do it, since I just need the lines infos? thank you very much! Wei |
Hi, just add the following to the end:
surfaces (); |
Hi, just add the following to the end:
surfaces (); |
Hi, Watts,
it works very well.Thank you! Wei Quote:
|
| All times are GMT -4. The time now is 06:15. |