some problem about the ultility of sample
I use sample to get some points'value of U.The file of sampledict is as following:
/*--------------------------------*- C++ -*----------------------------------*\ | ========= | | | \\ / F ield | OpenFOAM: The Open Source CFD Toolbox | | \\ / O peration | Version: 2.1.0 | | \\ / A nd | Web: www.OpenFOAM.org | | \\/ M anipulation | | \*---------------------------------------------------------------------------*/ FoamFile { version 2.0; format ascii; class dictionary; object sampleDict; } // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // setFormat raw; interpolationScheme cellPoint; fields ( magU ); sets ( somePoints { type cloud; axis distance; points ( (-2.7930000e+003 8.8481152e+002 1.3003200e+001) (-2.7697279e+003 8.7943448e+002 1.3007100e+001) (-3.0252744e+002 3.0986790e+002 4.2658100e+001) ); } // ************************************************** ********************* // when i execute sample ,the output is: 0 8.69387055526; 1 8.74148226095; 2 6.58627288222 I do not get the distance.who can tell me the reason?Thanks a lot. |
I do not know why there is not one reply me. Is my question not clear? If so,Please tell me and i will correct it。Thanks in advice.
|
I suspect you need to have
start (x1, y1, z1) end (x2, y2, z2) instead of points (x1, y1, z1) (x2, y2, z2) (x3, y3, z3) because the numbers probably correspond to each point. EDIT: you must also change "cloud" to "uniform". Actually, take a look at applications/utilities/postProcessing/sampling/sample/sampleDict, it will help you a lot. If you need to have the two intervals between the 3 points, you can check the sampleDict of the compressible/rhoCentralFoam/biconic25-55Run35 tutorial and the sampleCone script in the same directory. I saw your post kind of late, if you had already found the solution ignore this. |
First,Thanks for your reply.But my line is curve,not straight line.i think the type of "start end "is used to define straight line.if i was wrong,please not hesitate to correct me.Tanks again.
|
All times are GMT -4. The time now is 15:13. |