View Issue Details

IDProjectCategoryView StatusLast Update
0000354OpenFOAMBugpublic2015-01-01 14:17
Reporteruser302Assigned Tohenry  
PriorityurgentSeveritymajorReproducibilityalways
Status closedResolutionfixed 
PlatformlinuxOSubuntu 11.10OS Version(please specify)
Summary0000354: difference in pressure values when generated from sampleDict and ControlDict
DescriptionI put the following code inthe sampleDict file:

 

fields (alpha1

p);

surfaces

(

wallPressure

{

type patch;

patches (leftWall);

interpolate true;

triangulate false;

}

);

 

I also put the same code in the controlDict file:

 

wallPressure

{

type surfaces;

functionObjectLibs ("libsampling.so");

outputControl outputTime;

outputInterval 10;

surfaceFormat raw;

interpolationScheme cellPoint;

 

fields ( alpha1

p

);

surfaces

(

walls

{

type patch;

patches (leftWall);

interpolate true;

triangulate false;

}

);

}

 

I am modeling a rectangular tank with the fluid halfway up the tank, as a variation of the sloshingTank2D. After running OpenFOAM, I checked the pressures for the left wall at the same time interval. The output from controlDict for the first few lines is:

 

# p POINT_DATA 82

# x y z p

-0.5 -19.97 -10 536249

0.5 -19.97 -10 536249

0.5 -19.97 -9.5 536249

-0.5 -19.97 -9.5 536249

0.5 -19.97 -9 530098

-0.5 -19.97 -9 530098

0.5 -19.97 -8.5 522683

-0.5 -19.97 -8.5 522683

 

The output from the sampleDict file is:

# p POINT_DATA 82

# x y z p

-0.5 -19.97 -10 533173

0.5 -19.97 -10 536942

0.5 -19.97 -9.5 536942

-0.5 -19.97 -9.5 533173

0.5 -19.97 -9 533173

-0.5 -19.97 -9 526390

0.5 -19.97 -8.5 526390

-0.5 -19.97 -8.5 518337

 

There are significant difference pressure values between the two. Can anyone tell me why this may be occuring?

Tagssample

Activities

user4

2013-12-31 17:30

  ~0002729

Try running with binary writing or a higher write precision.

henry

2015-01-01 14:17

manager   ~0003441

Orphaned report

Issue History

Date Modified Username Field Change
2011-12-13 15:08 user302 New Issue
2013-12-31 17:30 user4 Note Added: 0002729
2014-12-29 18:37 wyldckat Tag Attached: sample
2015-01-01 14:17 henry Note Added: 0003441
2015-01-01 14:17 henry Status new => closed
2015-01-01 14:17 henry Assigned To => henry
2015-01-01 14:17 henry Resolution open => fixed