Skip to content

Fan : cyclic: pressure vs velocity curve using csv file : syntax issue

Hello I am trying to define , pressure drop vs velocity curve (to define a pressure curve for fan)using following syntax as mentioned here in

https://openfoam.com/documentation/guides/latest/api/fanFvPatchField_8H_source.html

patchName>

{
     type            fan;
     patchType       cyclic;
     jumpTable       csvFile;
     csvFileCoeffs
     {
         nHeaderLine     1;
         refColumn       0;
         componentColumns 1(1);
         separator       ",";
         mergeSeparators no;
         file            "<constant>/pressureVsU";
     }        value         uniform 0;
 }

However , while running it throws error

Entry 'nHeaderLine' not found in dictionary "/

However if change it to following i.e put all information inside csvFileCoeff dict outside

cyclicFaces_master { type fan; patchType cyclic; jumpTable csvFile;

//    csvTableCoeffs
//    {
         nHeaderLine     0;
         refColumn       0;
         componentColumns (1);
         separator       ",";
         mergeSeparators no;
         file            "<constant>/pressureVsU";
         outOfBounds         clamp;
  //   }
}

I have attached case here TJunctionFan-fancurve.tgz

Edited by Prashant Sonakar