From 5390ac2b1f842d8912f3e06b7fb0a436183e4813 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Sat, 21 Jun 2008 17:15:45 +0100 Subject: [PATCH 1/3] Adding symmTensor to components.C otherwise foamCalc components sigma does not work in solidDisplacementFoam tutorial --- .../foamCalcFunctions/field/components/components.C | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/postProcessing/foamCalcFunctions/field/components/components.C b/src/postProcessing/foamCalcFunctions/field/components/components.C index 644771023b..9c36d48ac1 100644 --- a/src/postProcessing/foamCalcFunctions/field/components/components.C +++ b/src/postProcessing/foamCalcFunctions/field/components/components.C @@ -112,6 +112,13 @@ void Foam::calcTypes::components::calc processed ); + writeComponentFields + ( + fieldHeader, + mesh, + processed + ); + if (!processed) { FatalError From 713ce12d95a3b745eaea9d1b0454024f503a7759 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Sat, 21 Jun 2008 17:35:04 +0100 Subject: [PATCH 2/3] Updating sampleDict in rhoSonicFoam/shockTube case --- tutorials/rhoSonicFoam/shockTube/system/sampleDict | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/tutorials/rhoSonicFoam/shockTube/system/sampleDict b/tutorials/rhoSonicFoam/shockTube/system/sampleDict index 7c59b17bef..95b819ee74 100644 --- a/tutorials/rhoSonicFoam/shockTube/system/sampleDict +++ b/tutorials/rhoSonicFoam/shockTube/system/sampleDict @@ -25,13 +25,14 @@ FoamFile interpolationScheme cellPoint; -writeFormat raw; +setFormat raw; -sampleSets +sets ( - uniform + data { - name data; + type uniform; + axis x; start (-4.995 0 0); end (4.995 0 0); @@ -39,6 +40,9 @@ sampleSets } ); +surfaces +(); + fields ( T From 0eaf65b5181670d1279419366643b69e879614c9 Mon Sep 17 00:00:00 2001 From: Chris Greenshields Date: Sat, 21 Jun 2008 17:36:18 +0100 Subject: [PATCH 3/3] Updating sampleDict in solidDisplacmentFoam tutorial case --- .../plateHole/system/sampleDict | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/tutorials/solidDisplacementFoam/plateHole/system/sampleDict b/tutorials/solidDisplacementFoam/plateHole/system/sampleDict index adf21bd6cf..056f0894ff 100644 --- a/tutorials/solidDisplacementFoam/plateHole/system/sampleDict +++ b/tutorials/solidDisplacementFoam/plateHole/system/sampleDict @@ -25,13 +25,13 @@ FoamFile interpolationScheme cellPoint; -writeFormat raw; +setFormat raw; -sampleSets +sets ( - uniform + leftPatch { - name leftPatch; + type uniform; axis y; start (0 0.5 0.25); end (0 2 0.25); @@ -39,10 +39,12 @@ sampleSets } ); -fields +surfaces +(); + +fields ( sigmaxx ); - // ************************************************************************* //