View Issue Details

IDProjectCategoryView StatusLast Update
0000655OpenFOAMBugpublic2012-10-04 17:47
Reporteruser91Assigned Tohenry  
PrioritynormalSeverityminorReproducibilityalways
Status resolvedResolutionfixed 
PlatformLinuxOSArchLinuxOS VersionN/A
Summary0000655: The patch maxwellSlipUFvPatchVectorField (rhoCentralFoam) writes the boundary data in old format
DescriptionWhen using the maxwellSlipUFvPatchVectorField the refValue and valueFraction have missing keywords 'nonuniform' in them. The consequence of this is when one continues the run the solver rhoCentralFoam, the solver reports a Fatal error.

A fix to is edit the file maxwellSlipUFvPatchVectorField.C . I have attached a patch file of the fix ( I am not very experience in using diff and not aware of the format you may prefer it in. Was obtained using diff -Nur ActualDir/Old New. Hope it is of some help.
Steps To Reproduce1) Apply the maxwellSlipU to wall BC
2) Run case with rhoCentralFoam until t=X
3) Try continue run with rhoCentralFoam to t=X+DX
rhoCentralFoam will give the a fatal error.
Additional InformationThe error shown is:

--> FOAM FATAL IO ERROR:
Expected a '(' while reading VectorSpace<Form, Cmpt, nCmpt>, found on line 166446 the label 200

file: /home/jlight/CFD/DSTO/MainWork/Wire_OF_New/1.000000e-12/U::boundaryField::wire::refValue at line 166446.

    From function Istream::readBegin(const char*)
    in file db/IOstreams/IOstreams/Istream.C at line 94.

FOAM exiting
TagsNo tags attached.

Activities

user91

2012-10-04 13:45

 

fixmaxwellSlipU.patch (694 bytes)   
--- ../../../rhoCentralFoam/BCs/U/maxwellSlipUFvPatchVectorField.C	2011-11-25 03:59:50.000000000 +1100
+++ maxwellSlipUFvPatchVectorField.C	2012-10-04 22:30:46.318141418 +1000
@@ -194,11 +194,9 @@
     os.writeKeyword("thermalCreep")
         << thermalCreep_ << token::END_STATEMENT << nl;
     os.writeKeyword("curvature") << curvature_ << token::END_STATEMENT << nl;
-
-    os.writeKeyword("refValue")
-        << refValue() << token::END_STATEMENT << nl;
-    os.writeKeyword("valueFraction")
-        << valueFraction() << token::END_STATEMENT << nl;
+   
+    refValue().writeEntry("refValue", os);
+    valueFraction().writeEntry("valueFraction", os);
 
     writeEntry("value", os);
 }
fixmaxwellSlipU.patch (694 bytes)   

henry

2012-10-04 17:47

manager   ~0001700

Thanks for the bug-report
Resolved by commit dcf4840a51ee2a6352337d86c4dcea5a38aefd96

> I am not very experience in using diff and not aware of the format you may
> prefer it in

For these kinds of changes it is best if you supply the updated file/files rather than diff's so that the changes can more easily be applied to other versions of OpenFOAM.

Issue History

Date Modified Username Field Change
2012-10-04 13:45 user91 New Issue
2012-10-04 13:45 user91 File Added: fixmaxwellSlipU.patch
2012-10-04 17:47 henry Note Added: 0001700
2012-10-04 17:47 henry Status new => resolved
2012-10-04 17:47 henry Resolution open => fixed
2012-10-04 17:47 henry Assigned To => henry