enGits / engrid

ENGRID is a mesh generation software with CFD applications in mind. It supports automatic prismatic boundary layer grids for Navier-Stokes simulations and has a Qt based GUI.
Other
146 stars 55 forks source link

export grid only to openfoam results in cpp error on line 82 of openfoamwriter.cpp #19

Closed wyldckat closed 12 years ago

wyldckat commented 12 years ago

Original Report:

21 [enGrid] bug major always 2012-07-04 00:35 2012-07-04 20:53
unauthenticated  
 
normal  
new 1.3beta  
open  
none    
none  
export grid only to openfoam results in cpp error on line 82 of openfoamwriter.cpp
see attached file, this is windows version
cylinder.egc (6 KB) 2012-07-04 00:35
wyldckat commented 12 years ago

Reporter forgot to attach the file "cylinder.egc.vtu"... and since he/she didn't login, we are unable to get more feedback on this.

wyldckat commented 12 years ago

The attached file had this inside:

<engridcase>
  <openfoam-1.5>
    <simplefoam>
      <standard>
        <controldict>&#xd;
 start from = startTime;&#xd;
 start iteration = 0;&#xd;
 last iteration = 1000;&#xd;
 write interval = 100;&#xd;
</controldict>
        <u>&#xd;
 initial u = 0;&#xd;
 initial v = 0;&#xd;
 initial w = 0;&#xd;
</u>
        <p>&#xd;
 initial pressure = 0;&#xd;
</p>
        <k/>
        <epsilon/>
        <omega/>
        <transportproperties>&#xd;
 kinematic viscosity = 1e-6;&#xd;
</transportproperties>
        <rasproperties>&#xd;
 turbulence model = kOmegaSST;&#xd;
 freeze turbulent properties = on;&#xd;
</rasproperties>
        <fvschemes>&#xd;
 U convection scheme = linearUpwind Gauss;&#xd;
 k convection scheme = upwind;&#xd;
 epsilon convection scheme = upwind;&#xd;
 omega convection scheme = upwind;&#xd;
</fvschemes>
        <fvsolution>&#xd;
 non-orthogonal correctors = 2;&#xd;
 p relaxation factor       = 0.3;&#xd;
 U relaxation factor       = 0.7;&#xd;
 k relaxation factor       = 0.7;&#xd;
 epsilon relaxation factor = 0.7;&#xd;
 omega relaxation factor   = 0.7;&#xd;
</fvsolution>
      </standard>
    </simplefoam>
    <rhosimplefoam>
      <standard>
        <controldict>&#xd;
 start from = startTime;&#xd;
 start iteration = 0;&#xd;
 last iteration = 1000;&#xd;
 write interval = 100;&#xd;
</controldict>
        <u>&#xd;
 initial u = 0;&#xd;
 initial v = 0;&#xd;
 initial w = 0;&#xd;
</u>
        <p>&#xd;
 initial pressure = 100000;&#xd;
</p>
        <t>&#xd;
 initial temperature = 300;&#xd;
</t>
        <k/>
        <epsilon/>
        <omega/>
        <thermophysicalproperties>&#xd;
 molar mass = 28.96;&#xd;
 specific heat at constant pressure = 1004.5;&#xd;
 Sutherland constant = 1.458e-06;&#xd;
 Sutherland temperature = 110.4;&#xd;
</thermophysicalproperties>
        <rasproperties>&#xd;
 turbulence model = kOmegaSST;&#xd;
 freeze turbulent properties = on;&#xd;
</rasproperties>
        <fvschemes>&#xd;
 U convection scheme = linearUpwind Gauss;&#xd;
 h convection scheme = linearUpwind Gauss;&#xd;
 k convection scheme = upwind;&#xd;
 epsilon convection scheme = upwind;&#xd;
 omega convection scheme = upwind;&#xd;
</fvschemes>
        <fvsolution>&#xd;
 non-orthogonal correctors = 2;&#xd;
 minimal pressure = 1000;&#xd;
 p relaxation factor       = 0.3;&#xd;
 U relaxation factor       = 0.7;&#xd;
 h relaxation factor       = 0.7;&#xd;
 k relaxation factor       = 0.7;&#xd;
 epsilon relaxation factor = 0.7;&#xd;
 omega relaxation factor   = 0.7;&#xd;
</fvsolution>
      </standard>
    </rhosimplefoam>
  </openfoam-1.5>
  <openfoam-1.6.x>
    <simplefoam>
      <standard>
        <controldict>&#xd;
 start from = startTime;&#xd;
 start iteration = 0;&#xd;
 last iteration = 1000;&#xd;
 write interval = 100;&#xd;
</controldict>
        <u>&#xd;
 initial u = 0;&#xd;
 initial v = 0;&#xd;
 initial w = 0;&#xd;
</u>
        <p>&#xd;
 initial pressure = 0;&#xd;
</p>
        <k/>
        <epsilon/>
        <omega/>
        <transportproperties>&#xd;
 kinematic viscosity = 1e-6;&#xd;
</transportproperties>
        <rasproperties>&#xd;
 turbulence model = kOmegaSST;&#xd;
 freeze turbulent properties = on;&#xd;
</rasproperties>
        <fvschemes>&#xd;
 U convection scheme = linearUpwind Gauss;&#xd;
 k convection scheme = upwind;&#xd;
 epsilon convection scheme = upwind;&#xd;
 omega convection scheme = upwind;&#xd;
</fvschemes>
        <fvsolution>&#xd;
 non-orthogonal correctors = 2;&#xd;
 p relaxation factor       = 0.3;&#xd;
 U relaxation factor       = 0.7;&#xd;
 k relaxation factor       = 0.7;&#xd;
 epsilon relaxation factor = 0.7;&#xd;
 omega relaxation factor   = 0.7;&#xd;
</fvsolution>
      </standard>
    </simplefoam>
    <rhosimplefoam>
      <standard>
        <controldict>&#xd;
 start from = startTime;&#xd;
 start iteration = 0;&#xd;
 last iteration = 1000;&#xd;
 write interval = 100;&#xd;
</controldict>
        <u>&#xd;
 initial u = 0;&#xd;
 initial v = 0;&#xd;
 initial w = 0;&#xd;
</u>
        <p>&#xd;
 initial pressure = 100000;&#xd;
</p>
        <t>&#xd;
 initial temperature = 300;&#xd;
</t>
        <k/>
        <epsilon/>
        <omega/>
        <thermophysicalproperties>&#xd;
 molar mass = 28.96;&#xd;
 specific heat at constant pressure = 1004.5;&#xd;
 Sutherland constant = 1.458e-06;&#xd;
 Sutherland temperature = 110.4;&#xd;
</thermophysicalproperties>
        <rasproperties>&#xd;
 turbulence model = kOmegaSST;&#xd;
 freeze turbulent properties = on;&#xd;
</rasproperties>
        <fvschemes>&#xd;
 U convection scheme = linearUpwind Gauss;&#xd;
 h convection scheme = linearUpwind Gauss;&#xd;
 k convection scheme = upwind;&#xd;
 epsilon convection scheme = upwind;&#xd;
 omega convection scheme = upwind;&#xd;
</fvschemes>
        <fvsolution>&#xd;
 non-orthogonal correctors = 2;&#xd;
 minimal pressure = 1000;&#xd;
 p relaxation factor       = 0.3;&#xd;
 U relaxation factor       = 0.7;&#xd;
 h relaxation factor       = 0.7;&#xd;
 k relaxation factor       = 0.7;&#xd;
 epsilon relaxation factor = 0.7;&#xd;
 omega relaxation factor   = 0.7;&#xd;
</fvsolution>
      </standard>
    </rhosimplefoam>
  </openfoam-1.6.x>
  <solver>
    <general>
      <solver_type>0</solver_type>
      <solver_binary>simpleFoam</solver_binary>
      <host_weight_list/>
    </general>
  </solver>
  <engrid>
    <surface>
      <settings>&#xd;
1000&#xd;
0&#xd;
1.5&#xd;
24&#xd;
3&#xd;
1 &#xd;
1 &#xd;
1 &#xd;
</settings>
      <table>&#xd;
0 6&#xd;
</table>
    </surface>
    <sources/>
    <bc>
1 cylinderwall wall
2 inlet inlet
3 outlet outlet
-1 Volume1 1:1,2:1,3:1
</bc>
    <physical>
1 OurInlet inlet 0 0.04 1 300
2 OurOutlet outlet 0
0 OurWall wall
</physical>
  </engrid>
  <blayer>1 0.01 0 1.5 11 </blayer>
</engridcase>
ogloth commented 12 years ago

Most likely there was no volume grid. I have provided an actual error message instead of the bug message now.