Error of boundary condistion setting?

Questions and remarks about code_saturne usage
Forum rules
Please read the forum usage recommendations before posting.
Post Reply
youngzxlove

Error of boundary condistion setting?

Post by youngzxlove »

Hi,

I use code_saturne 2.0.3

an error is reported in the error file: error.mmddhhmm as follows

Code: Select all

/work/cgx1_work/yzx/Code_Saturne/2.0/install_file/installer/ncs-2.0.6/src/base/cs_boundary_conditions.c:429: Fatal error.


Some boundary condition definitions are incomplete or incorrect.

  For details, read the end of the calculation log,
  or visualize the error postprocessing output.


Call stack:
   1: 0x2adcd8b24fb4 <cs_boundary_conditions_error+0xd24> (libsaturne.so.0)
   2: 0x2adcd8d40f08 <typecl_+0x76d8>                 (libsaturne.so.0)
   3: 0x2adcd8b0dd50 <condli_+0x920>                  (libsaturne.so.0)
   4: 0x2adcd8d0c43a <tridim_+0x34da>                 (libsaturne.so.0)
   5: 0x2adcd8af9dbc <caltri_+0x3ecc>                 (libsaturne.so.0)
   6: 0x2adcd8ad396d <cs_run+0x77d>                   (libsaturne.so.0)
   7: 0x2adcd8ad3d05 <main+0x1f5>                     (libsaturne.so.0)
   8: 0x3af641d994 <__libc_start_main+0xf4>         (libc.so.6)
   9: 0x400689     <main+0x49>                      (cs_solver)
End of stack

application called MPI_Abort(MPI_COMM_WORLD, 1) - process 0
and the summary file reads:

Code: Select all

========================================================
   Start time       :  Tue Oct 23 11:43:18 CST 2012
  ----------------------------------------------------
    Kernel          :  /home/cgx1/WORK/yzx/Code_Saturne/2.0/test_saturne/cs-2.0
    Preprocessor    :  /home/cgx1/WORK/yzx/Code_Saturne/2.0/test_saturne/cs-2.0/bin
    ------------------------------------------------  
    CS_MPI_PATH     :  /apps/intel/impi/4.0.2.003/intel64//bin
    PATH            :  /jobmgr/lsf8.0/8.0/linux2.6-glibc2.3-x86_64/bin:/home/cgx1/WORK/yzx/Code_Saturne/2.0/test_saturne/cs-2.0/bin:/apps/intel/Compiler/11.1/069/f/bin/intel64:/apps/intel/Compiler/11.1/069/f/bin/intel64:/apps/intel/Compiler/11.1/069/c/bin/intel64:/apps/intel/impi/4.0.2.003/intel64/bin:/jobmgr/lsf8.0/8.0/linux2.6-glibc2.3-x86_64/etc:/usr/lib64/qt-3.3/bin:/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/home/cgx1/bin
    ------------------------------------------------  
    User            :  cgx1
========================================================
    Machine         : 
Linux c04b08 2.6.18-194.17.1.0.1.el5_lustre.1.8.5 #1 SMP Thu Aug 4 17:12:58 CST 2011 x86_64 x86_64 x86_64 GNU/Linux
    N Procs         :  1
    Processors      :  default
========================================================
  ----------------------------------------------------
    Case            :  CASE1
      DATA          :  /work/cgx1_work/yzx/CHANNEL/CASE1/DATA
      SRC           :  /work/cgx1_work/yzx/CHANNEL/CASE1/SRC
      RESU          :  /work/cgx1_work/yzx/CHANNEL/CASE1/RESU
  ----------------------------------------------------
    Exec. dir.      :  /home/cgx1/WORK/yzx/tmp_Saturne/CHANNEL.CASE1.10231143
  ----------------------------------------------------
    Executable      :  cs_solver
  ----------------------------------------------------
    Preprocessing   :  yes
    Partitioning    :  no
    Calculation     :  failed
  ----------------------------------------------------
   Finish time      :  Tue Oct 23 11:43:19 CST 2012
========================================================
The error seems to be an boundary condition error, but I don't know what's wrong with my BC settings.
The listpre file reads

Code: Select all

/home/cgx1/WORK/yzx/Code_Saturne/2.0/test_saturne/cs-2.0/bin/cs_preprocess 
--mesh channel.cgns --case CASE1 --perio --group streamwise --invsel --fraction 
0.1 --plane 0.8 --trans 12.566 0 0 --perio --group spanwise --invsel --fraction 
0.1 --plane 0.8 --trans 0 0 6.283 

  .------------------------------.
  |                              |
  |   Code_Saturne Preprocessor  |
  |                              |
  `------------------------------'

  ECS   version 2.0.3   (Mon 22 Oct 2012 07:19:47 PM CST)

  CGNS 3.1.3 file format support
  MED 3.0.5 (HDF5 1.8.9) file format support
  Reading of compressed files ('.gz') with Zlib 1.2.3



Case configuration
------------------

  Date                : Tue 23 Oct 2012 11:43:18 AM CST
  System              : Linux 2.6.18-194.17.1.0.1.el5_lustre.1.8.5
  Machine             : c04b08
  Processor           : Intel(R) Xeon(R) CPU           X5670  @ 2.93GHz
  Memory              : 32950608
  User                : cgx1 ()
  Directory           : /work/cgx1_work/yzx/tmp_Saturne/CHANNEL.CASE1.10231143

  Case name           : CASE1
  Mesh file           : channel.cgns



Reading mesh from file in CGNS format
----------------------
  Mesh file: channel.cgns


  CGNS version       : 2.5
  Base name          : fluid
  Physical dimension : 3
  Cell dimension     : 3
  Number of zones    : 1

    Zone 1: "A"; type "Unstructured"

      65536 vertices; 60543 cells
      (cartesian coordinates, "RealDouble" precision, unit "Null")
      Section  1: "HexElements";
                   (indices 1 to 60543, type "HEXA_8")

  CGNS boundary condition information:

    Zone 1
      BC  1: "Unspecified" ("Null" on "Vertex")
      BC  2: "Unspecified2" ("Null" on "Vertex")
      BC  3: "Unspecified3" ("Null" on "Vertex")
      BC  4: "Unspecified4" ("Null" on "Vertex")
      BC  5: "Unspecified5" ("Null" on "Vertex")
      BC  6: "Unspecified6" ("Null" on "Vertex")

  Number of vertices                          :    65536
  Number of faces                             :     9734
  Number of cells                             :    60543
  Group "Unspecified"
    Number of faces    :      961
  Group "Unspecified2"
    Number of faces    :     1953
  Group "Unspecified3"
    Number of faces    :     1953
  Group "Unspecified4"
    Number of faces    :      961
  Group "Unspecified5"
    Number of faces    :     1953
  Group "Unspecified6"
    Number of faces    :     1953

  Wall-clock time: 0.024346 s; CPU time: 0.016998 s


Done reading mesh
-----------------
  Theoretical mesh size:                 3.534 Mb
  Theoretical current memory:            3.534 Mb
  Theoretical peak memory:               7.353 Mb
  Total memory used:                    96.184 Mb

  Domain coordinate extents:

  [ 0.00000e+00,  0.00000e+00,  0.00000e+00]
  [ 1.25660e+01,  2.00000e+00,  6.28300e+00]

  Number of elements                    quad4 :     9734
  Number of elements                    hexa8 :    60543


  Element orientation check.


End of conversion to descending connectivity
--------------------------------------------
  Theoretical mesh size:                 6.481 Mb
  Theoretical current memory:            6.480 Mb
  Theoretical peak memory:              15.979 Mb
  Total memory used:                   107.191 Mb


Processing periodicity 1
----------------------------

  Periodicity type: pure translation

    Translation parameters
      - translation vector:      1.25660e+01  0.00000e+00  0.00000e+00

  De-selected groups:

    Group "streamwise"

    There is no de-selectable element belonging to group "streamwise".
    (This may be due to the selection's restriction
    to interior or boundary faces).


  Number of elements before joining

    Number of cells                   :    60543
    Number of faces                   :   186496
    Number of vertices                :    65536
    Number of boundary faces          :     9734
    Number of selected boundary faces :     9734


  Joining parameter values:
  - Fraction of the length of the shortest edge
    connected to a vertex under which 2 edges
    intersect and 2 vertices are merged:                1.0000000000E-01
  - Value of the dot product of the unit normals of
    2 faces above which these faces are considered
    to be coplanar:                                     8.0000000000E-01

  Search for edge intersections:
    Checked possibilities             :      28740
    Intersections found               :      32740

  Subdivision of edges:
    Initial number of vertices        :      75272
    Initial number of edges           :     210956
    Number of vertices after division :      75272
    Number of edges after division    :     210956

  Merging vertices:
    Initial number of vertices        :      75272
    Number of vertices after merging  :      73224
    Number of modified vertices       :       2048

  Merging of topologically identical edges:
    Initial number of edges           :     210956
    Number of edges after merging     :     206956

  Removal of degenerate edges if present      :
    Initial number of edges           :     206956
    Number of edges after processing  :     206956

  Removal of degenerate corners if present :
    Number of simplified faces        :          0


  Number of elements after joining

    Number of cells                   :    60543
    Number of faces                   :   186496
    Number of vertices                :    65536

  Wall-clock time: 0.690467 s; CPU time: 0.680897 s



Processing periodicity 2
----------------------------

  Periodicity type: pure translation

    Translation parameters
      - translation vector:      0.00000e+00  0.00000e+00  6.28300e+00

  De-selected groups:

    Group "spanwise"

    There is no de-selectable element belonging to group "spanwise".
    (This may be due to the selection's restriction
    to interior or boundary faces).


  Number of elements before joining

    Number of cells                   :    60543
    Number of faces                   :   186496
    Number of vertices                :    65536
    Number of boundary faces          :     5828
    Number of selected boundary faces :     5828


  Joining parameter values:
  - Fraction of the length of the shortest edge
    connected to a vertex under which 2 edges
    intersect and 2 vertices are merged:                1.0000000000E-01
  - Value of the dot product of the unit normals of
    2 faces above which these faces are considered
    to be coplanar:                                     8.0000000000E-01

  Search for edge intersections:
    Checked possibilities             :      27872
    Intersections found               :      31872

  Subdivision of edges:
    Initial number of vertices        :      71552
    Initial number of edges           :     203332
    Number of vertices after division :      71552
    Number of edges after division    :     203332

  Merging vertices:
    Initial number of vertices        :      71552
    Number of vertices after merging  :      69504
    Number of modified vertices       :       2048

  Merging of topologically identical edges:
    Initial number of edges           :     203332
    Number of edges after merging     :     199332

  Removal of degenerate edges if present      :
    Initial number of edges           :     199332
    Number of edges after processing  :     199332

  Removal of degenerate corners if present :
    Number of simplified faces        :          0


  Number of elements after joining

    Number of cells                   :    60543
    Number of faces                   :   186496
    Number of vertices                :    65536

  Wall-clock time: 0.368719 s; CPU time: 0.367944 s



Defining families
-----------------



Main mesh properties
--------------------

  Number of cells:                                 60543
  Number of internal faces:                       184574
    including periodic faces:
      periodicity   1:                              3906
      periodicity   2:                              3906
  Number of boundary faces:                         1922
  Number of vertices:                              65536


Definition of face and cell families
------------------------------------

176762 faces from a total of 186496 have no color
and belong to no group...
A default family is assigned to those faces.


Warning
=======
60543 cells from a total of 60543 have no color
and belong to no group...
A default family is assigned to those cells.

  Family 1
         Group "Unspecified4"
  Number of boundary faces :      961
  Family 2
         Group "Unspecified2"
  Number of internal faces :     1953
  Family 3
         Group "Unspecified5"
  Number of internal faces :     1953
  Family 4
         Group "Unspecified3"
  Number of internal faces :     1953
  Family 5
         Group "Unspecified6"
  Number of internal faces :     1953
  Family 6
         Group "Unspecified"
  Number of boundary faces :      961
  Family 7
         Default family
         (with no color nor group)
  Number of cells          :    60543
  Number of internal faces :   176762


Definition of colors and groups based on families
-------------------------------------------------

  Group "Unspecified4"
        Family 1
  Group "Unspecified2"
        Family 2
  Group "Unspecified5"
        Family 3
  Group "Unspecified3"
        Family 4
  Group "Unspecified6"
        Family 5
  Group "Unspecified"
        Family 6


Groups numbering
----------------

  Group   1 : "Unspecified"
  Group   2 : "Unspecified2"
  Group   3 : "Unspecified3"
  Group   4 : "Unspecified4"
  Group   5 : "Unspecified5"
  Group   6 : "Unspecified6"


Write output for Kernel
-----------------------

  Opening file: preprocessor_output

  Wrote: "start_block:dimensions"
  Wrote: "n_cells"                         ; Type: "u8"; Size: 1
  Wrote: "n_faces"                         ; Type: "u8"; Size: 1
  Wrote: "n_vertices"                      ; Type: "u8"; Size: 1
  Wrote: "face_vertices_size"              ; Type: "u8"; Size: 1
  Wrote: "n_group_classes"                 ; Type: "i4"; Size: 1
  Wrote: "n_group_class_props_max"         ; Type: "i4"; Size: 1
  Wrote: "n_groups"                        ; Type: "u8"; Size: 1
  Wrote: "group_name_index"                ; Type: "i4"; Size: 7
  Wrote: "group_name"                      ; Type: "c "; Size: 77
  Wrote: "group_class_properties"          ; Type: "i4"; Size: 7
  Wrote: "n_periodic_directions"           ; Type: "i4"; Size: 1
  Wrote: "n_periodic_rotations"            ; Type: "i4"; Size: 1
  Wrote: "n_periodic_faces"                ; Type: "i4"; Size: 2
  Wrote: "end_block:dimensions"
  Wrote: "start_block:data"
  Wrote: "face_cells"                      ; Type: "i4"; Size: 372992
  Wrote: "cell_group_class_id"             ; Type: "i4"; Size: 60543
  Wrote: "face_group_class_id"             ; Type: "i4"; Size: 186496
  Wrote: "face_vertices_index"             ; Type: "u4"; Size: 186497
  Wrote: "face_vertices"                   ; Type: "i4"; Size: 745984
  Wrote: "vertex_coords"                   ; Type: "r8"; Size: 196608
  Wrote: "periodicity_type_01"             ; Type: "i4"; Size: 1
  Wrote: "periodicity_matrix_01"           ; Type: "r8"; Size: 12
  Wrote: "periodicity_faces_01"            ; Type: "i4"; Size: 3906
  Wrote: "periodicity_type_02"             ; Type: "i4"; Size: 1
  Wrote: "periodicity_matrix_02"           ; Type: "r8"; Size: 12
  Wrote: "periodicity_faces_02"            ; Type: "i4"; Size: 3906
  Wrote: "end_block:data"
  Wrote: "EOF"

  Closing file: preprocessor_output


Time and memory summary
-----------------------

  User CPU time                       (sec)   :        1.16
  System CPU time                     (sec)   :        0.07
  Total time                          (sec)   :        1.23
  Total CPU time / Total time                 :        1.00

Memory use summary:

  Total memory used:                                 123.441 Mb
  Theoretical instrumented dynamic memory:            26.365 Mb


  .-----------------------.
  |                       |
  |  Preprocessor finish  |
  |                       |
  `-----------------------'


JamesMcNaughton
Posts: 72
Joined: Mon Mar 19, 2012 1:21 pm

Re: Error of boundary condistion setting?

Post by JamesMcNaughton »

In the RESU folder there should be a results file called ERROR.ENSIGHT.xxxxxx which if you visualise will show you which boundary conditions you have not defined properly.
youngzxlove

Re: Error of boundary condistion setting?

Post by youngzxlove »

I find the error.
Thank you.
JamesMcNaughton wrote:In the RESU folder there should be a results file called ERROR.ENSIGHT.xxxxxx which if you visualise will show you which boundary conditions you have not defined properly.
Post Reply