From: Wolfgang Bangerth Date: Wed, 17 Nov 2021 04:37:10 +0000 (-0700) Subject: Add more tests. X-Git-Tag: v9.4.0-rc1~817^2~2 X-Git-Url: https://gitweb.dealii.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=bacc5d6d0dfb77e44a97dfdc0d92ded52ae107b6;p=dealii.git Add more tests. --- diff --git a/tests/grid/grid_in_comsol_mphtxt_02.cc b/tests/grid/grid_in_comsol_mphtxt_02.cc new file mode 100644 index 0000000000..7fe668df78 --- /dev/null +++ b/tests/grid/grid_in_comsol_mphtxt_02.cc @@ -0,0 +1,116 @@ +// --------------------------------------------------------------------- +// +// Copyright (C) 2004 - 2020 by the deal.II authors +// +// This file is part of the deal.II library. +// +// The deal.II library is free software; you can use it, redistribute +// it, and/or modify it under the terms of the GNU Lesser General +// Public License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// The full text of the license can be found in the file LICENSE.md at +// the top level directory of deal.II. +// +// --------------------------------------------------------------------- + + + +// Check whether we can read in meshes in COMSOL's .mphtxt format. +// +// Compared to the _01 test, we here read in a whole bunch of other +// meshes but output less detailed information about them. + +#include +#include +#include +#include +#include + +#include "../tests.h" + + + +template +void +comsol_grid(const char *name) +{ + Triangulation tria; + GridIn grid_in; + grid_in.attach_triangulation(tria); + std::ifstream input_file(name); + grid_in.read_comsol_mphtxt(input_file); + + deallog << " " << tria.n_active_cells() << " active cells" << std::endl; + + int hash = 0; + int index = 0; + for (typename Triangulation::active_cell_iterator c = + tria.begin_active(); + c != tria.end(); + ++c, ++index) + for (const unsigned int i : c->vertex_indices()) + hash += (index * i * c->vertex_index(i)) % (tria.n_active_cells() + 1); + deallog << " hash=" << hash << std::endl; + +#if 0 + { + static int output_file = 0; + GridOut go; + std::ofstream o("x-" + std::to_string(output_file) + ".gnuplot"); + go.write_gnuplot(tria, o); + + ++output_file; + } + +#endif +} + + +int +main() +{ + initlog(); + + try + { + comsol_grid<3>(SOURCE_DIR "/grids/comsol/mesh_example_intro.mphtxt"); + comsol_grid<3>( + SOURCE_DIR "/grids/comsol/mesh_example_with_complete_geom_info.mphtxt"); + comsol_grid<3>( + SOURCE_DIR + "/grids/comsol/mesh_example_with_domain_geom_info_1_7.mphtxt"); + comsol_grid<3>(SOURCE_DIR + "/grids/comsol/mesh_example_with_domain_geom_info.mphtxt"); + comsol_grid<3>( + SOURCE_DIR + "/grids/comsol/mesh_example_without_domain_geom_info.mphtxt"); + comsol_grid<3>(SOURCE_DIR "/grids/comsol/busbar_with_selections.mphtxt"); + } + catch (std::exception &exc) + { + deallog << std::endl + << std::endl + << "----------------------------------------------------" + << std::endl; + deallog << "Exception on processing: " << std::endl + << exc.what() << std::endl + << "Aborting!" << std::endl + << "----------------------------------------------------" + << std::endl; + return 1; + } + catch (...) + { + deallog << std::endl + << std::endl + << "----------------------------------------------------" + << std::endl; + deallog << "Unknown exception!" << std::endl + << "Aborting!" << std::endl + << "----------------------------------------------------" + << std::endl; + return 1; + }; + + return 0; +} diff --git a/tests/grid/grid_in_comsol_mphtxt_02.output b/tests/grid/grid_in_comsol_mphtxt_02.output new file mode 100644 index 0000000000..8a4a6160b9 --- /dev/null +++ b/tests/grid/grid_in_comsol_mphtxt_02.output @@ -0,0 +1,13 @@ + +DEAL:: 7 active cells +DEAL:: hash=74 +DEAL:: 7 active cells +DEAL:: hash=71 +DEAL:: 7 active cells +DEAL:: hash=71 +DEAL:: 7 active cells +DEAL:: hash=71 +DEAL:: 7 active cells +DEAL:: hash=74 +DEAL:: 638 active cells +DEAL:: hash=604750 diff --git a/tests/grid/grids/comsol/busbar_with_selections.mphtxt b/tests/grid/grids/comsol/busbar_with_selections.mphtxt new file mode 100644 index 0000000000..c180a52eef --- /dev/null +++ b/tests/grid/grids/comsol/busbar_with_selections.mphtxt @@ -0,0 +1,3105 @@ +# Created by COMSOL Multiphysics. + +# Major & minor version +0 1 +4 # number of tags +# Tags +5 mesh1 +10 mesh1_sel1 +10 mesh1_sel2 +10 mesh1_sel3 +4 # number of types +# Types +3 obj +3 obj +3 obj +3 obj + +# --------- Object 0 ---------- + +0 0 1 +4 Mesh # class +4 # version +3 # sdim +232 # number of mesh vertices +0 # lowest mesh vertex index + +# Mesh vertex coordinates +0.10499999999999998 -0.020757360945348007 0.059242642319585946 +0.105 -0.019000000000000003 0.055 +0.105 -0.024999999999999998 0.054999999999999993 +0.105 -0.025000000000000001 0.061000000000000006 +0.10499999999999997 -0.029242642319585944 0.059242639054651984 +0.099999999999999992 -0.020757364458556887 0.059242636750976435 +0.095000000000000001 -0.020757360945348007 0.059242642319585946 +0.097509724929064887 -0.02574415479554211 0.058086218783337744 +0.095000000000000001 0 0.10000000000000001 +0.095000000000000001 -0.025000000000000001 0.061000000000000006 +0.10000000000000001 -0.014813455157424478 0.060288789123369359 +0.099999999999999992 -0.019000000000000003 0.055 +0.095000000000000001 -0.019000000000000003 0.055 +0.10499999999999997 -0.020757357680414056 0.050757360945348003 +0.105 -0.025000000000000001 0.049000000000000002 +0.095000000000000001 -0.024999999999999998 0.054999999999999993 +0.10249999999999999 -0.023800000325105292 0.05210294433799921 +0.097531211573511814 -0.026470751768374795 0.052309460580093413 +0.099999999999999992 -0.025000001303197367 0.054999999999999986 +0.097504093650257667 -0.02811854707498174 0.055039567609849717 +0.10499999999999997 -0.029242639054651989 0.050757357680414061 +0.105 -0.031 0.055 +0.099999999999999992 -0.025000000000000001 0.060999999999999992 +0.095000000000000001 -0.022295935136907846 0.063613809163213589 +0.10000000000000001 -0.029242640754232576 0.059242638494793456 +0.099999999999999978 -0.018532602127963312 0.069780484804728773 +0.099999999999999992 0 0.10000000000000001 +0.095000000000000001 -0.025000000724297672 0.10000000000000002 +0.095000000000000001 -0.012264329308643568 0.06251257319302278 +0.095000000000000001 0 0.071899810604875838 +0.095000000000000001 -0.029242642319585944 0.059242639054651984 +0.095000000000000001 -0.022987845087563852 0.078230827251812365 +0.095000000000000001 -0.029311797490835369 0.064962474899758427 +0.095000000000000001 -0.050000000000000003 0.10000000000000001 +0.099999999999999978 0 0.064954708183195306 +0.10000000000000001 -0.011555917492312618 0.051086188938919037 +0.095000000000000001 -0.020757357680414056 0.050757360945348003 +0.095000000000000001 -0.012604245651026365 0.049842988823909452 +0.095000000000000001 -0.025000000000000001 0.049000000000000002 +0.10000000000000001 -0.020757364458556887 0.050757363249023565 +0.099999999999999992 -0.025000000000000001 0.049000000000000002 +0.095000000000000001 -0.029242639054651989 0.050757357680414061 +0.095000000000000001 -0.031 0.055 +0.099999999999999992 -0.029242640754232604 0.050757361505206516 +0.099999999999999992 -0.031 0.055 +0.099999999999999992 -0.030212582482736963 0.066666193734418538 +0.10000000000000001 -0.034470942016018191 0.05803100942065513 +0.099999999999999978 -0.029317908675876067 0.080441525291141291 +0.099999999999999992 -0.050000000000000003 0.10000000000000001 +0.095000000000000015 0 0.050378339340144226 +0.095000000000000001 -0.03775639747414071 0.05816337646248386 +0.095000000000000001 -0.049999999999999996 0.071998458858543196 +0.10000000000000001 0 0.04146124343516739 +0.10000000000000001 -0.014872655377329565 0.043610042613857924 +0.095000000000000001 -0.020069944016012694 0.044200545336326731 +0.095000000000000001 -0.010158297221665252 0.038757014697468013 +0.095000000000000001 -0.028351244605087644 0.043387680534093864 +0.099999999999999992 -0.030363395997332523 0.044573585950297104 +0.099999999999999992 -0.022591986552142198 0.043645104354884022 +0.095000000000000001 -0.035338980638865113 0.049455462373365469 +0.099999999999999992 -0.038464807042088295 0.050045727171265618 +0.099999999999999978 -0.049999999999999996 0.064954707760119093 +0.099999999999999992 -0.036972552921260692 0.040723718526572257 +0.095000000000000015 0 0.032581828862986266 +0.10000000000000001 0 0.02308588990914973 +0.095000000000000001 -0.0099175973863844975 0.025835402702830943 +0.095000000000000001 -0.050000000000000003 0.051078227554286544 +0.095000000000000001 -0.010610132154356812 0.016658477538058859 +0.099999999999999992 -0.015243397863018721 0.033584740228673575 +0.095000000000000001 -0.022914451366975667 0.033057086873833609 +0.095000000000000001 -0.03718457339856409 0.035162840405011594 +0.099999999999999992 -0.028185737293661972 0.032987666490416234 +0.099999999999999992 -0.05000000000000001 0.041461243224163266 +0.099999999999999992 -0.039648938652494796 0.032142933293964768 +0.095000000000000015 0 0.01866521712256446 +0.099999999999999992 0 0.0099999999999999985 +0.095000000000000015 -0.0071428571428571426 0.0099999999999999898 +0.10000000000000001 -0.0099597880473221555 0.018636151190887691 +0.095000000000000001 -0.018036863273032593 0.018958363697804806 +0.095000000000000001 -0.040012056543773211 0.022384510502477133 +0.095000000000000029 -0.050000000000000017 0.033101514953901214 +0.10000000000000001 -0.0099763062108844357 0.0099999999999999985 +0.094999999999999987 -0.014285714285714285 0.0099999999999999881 +0.099999999999999978 -0.023453678589034174 0.020444120805513347 +0.095000000000000015 -0.02887425584741803 0.01958726656392059 +0.10000000000000001 -0.037046911849256736 0.020927203853642107 +0.095000000000000001 -0.035650009650448948 0.015588960257402005 +0.10000000000000001 -0.05000000000000001 0.023085889822610204 +0.099999999999999992 -0.043898441256754343 0.015873814684720919 +0.095000000000000001 0 0.0099999999999999898 +0.097079292369599945 0 0.0029371663447108239 +0.097096632856823836 -0.0063480494184520384 0.0029545899980591463 +0.093530812835041652 -0.0054854555516820527 0.0064597513189176836 +0.093534998757465529 -0.010968098591696241 0.0064639310265894086 +0.10000000000000001 -0.019989228936014909 0.01 +0.095000000000000001 -0.021428571428571432 0.0099999999999999881 +0.095000000000000001 -0.028571428571428574 0.0099999999999999881 +0.095000000000000001 -0.044429698575011597 0.014972520935556453 +0.095000000000000015 -0.05000000000000001 0.018843470733689093 +0.097086985725016062 -0.015551507433921424 0.0029448860155615493 +0.093535205228659948 -0.017899587840448188 0.0064641374473467725 +0.099999999999999992 -0.030010771063987442 0.01 +0.095000000000000015 -0.035714285714285712 0.0099999999999999881 +0.10000000000000001 -0.040023693789114773 0.01 +0.095000000000000001 -0.042857142857142851 0.0099999999999999881 +0.099999999999999992 -0.050000000000000003 0.0099999999999999985 +0.089999999999999997 0 0.005000000000000001 +0.090000000000000011 -0.0099943148184444795 0 +0.090000000000000011 0 0 +0.089999999999999997 -0.0071428571428571426 0.005000000000000001 +0.089999999999999997 -0.014285714285714285 0.005000000000000001 +0.097075747977125593 -0.024627919754152017 0.0029336154531328326 +0.093535391042429555 -0.025000086165329852 0.0064643232363366682 +0.093535494604516947 -0.032100615978735356 0.0064644267930883594 +0.095000000000000001 -0.050000000000000003 0.0099999999999999898 +0.090000000000000011 -0.019997417261143832 0 +0.089999999999999997 -0.021428571428571432 0.0050000000000000001 +0.097086646685553613 -0.033973546022576878 0.0029445454608415271 +0.093535440958143909 -0.039032181135653717 0.0064643731487219339 +0.090000000000000011 -0.03000258273883397 0 +0.097087230339893707 -0.043575933180424506 0.0029451317440160447 +0.093526319356046383 -0.044421539721983871 0.0064552754974226099 +0.097079292369599945 -0.049999999999999989 0.0029371663447108239 +0.079234242617535866 0 0.005000000000000001 +0.079227213108240907 -0.016246511724508198 0 +0.077197511760816545 0 0 +0.079185132776408096 -0.018750000000000003 0.005000000000000001 +0.089999999999999997 -0.028571428571428574 0.005000000000000001 +0.090000000000000024 -0.035714285714285712 0.0050000000000000018 +0.090000000000000011 -0.042857142857142851 0.005000000000000001 +0.089999999999999997 -0.050000000000000003 0.005000000000000001 +0.079227213108240893 -0.031252196906063942 0 +0.090000000000000038 -0.040005685181555964 0 +0.090000000000000011 -0.050000000000000003 0 +0.057977042355865184 0 0 +0.058507238550734947 0 0.0050000000000000027 +0.068370265552816209 -0.023214285714285715 0.005000000000000001 +0.010757360945348009 -0.0082573576804140496 -0.0050000000000000001 +0.014999999999999999 -0.0064999999999999988 0.005000000000000001 +0.019242642319585945 -0.0082573609453480083 0.0050000000000000018 +0.014999999999999999 -0.0064999999999999988 -1.0928757898653885e-18 +0.014999999999999999 -0.0064999999999999988 -0.0049999999999999992 +0.019242642319585945 -0.0082573609453480083 -0.0049999999999999992 +0.010757363249023617 -0.008257364458556897 0 +0.017933583568007252 0 0 +0.017643802711190655 0 0.005000000000000001 +0.010757360945348009 -0.0082573576804140496 0.0050000000000000027 +0.068454426216481776 -0.022498708630571917 0 +0.073792019577983009 -0.036607142857142859 0.005000000000000001 +0.068602416236509645 -0.040626098453031972 0 +0.079213773603149795 -0.05000000000000001 0.0050000000000000018 +0.077197640874884038 -0.05000000000000001 0 +0.063424751285920566 -0.036607142857142859 0.005000000000000001 +0.020999999999999998 -0.012500000000000001 -0.0049999999999999992 +0.01924263905465199 -0.016742642319585947 -0.0050000000000000001 +0.019242638494793511 -0.0082573592457673862 0 +0.035001825192239905 0 0.005000000000000001 +0.020999999999999998 -0.012500000000000001 -1.0928757898653885e-18 +0.046217506060717693 -0.0072821699057209286 0 +0.03584019406726191 0 0 +0.020999999999999998 -0.012500000000000001 0.005000000000000001 +0.046740531105632421 -0.025000000000000001 0.005000000000000001 +0.015000000000000001 -0.012499999999999997 -0.0049999999999999992 +0.0090000000000000011 -0.012500000000000001 -0.0049999999999999992 +0.01075735768041405 -0.016742639054651991 -0.0049999999999999992 +0.015000000000000001 -0.012499999999999997 0.005000000000000001 +0.015000000217977134 -0.012500000000000001 0.0025000000000000005 +0.01500000043595427 -0.012500000000000001 0 +0.017414213233314935 -0.012500000272077828 -0.0025000000000000001 +0.014999999999999999 -0.018500000000000003 -0.0049999999999999992 +0.01075735768041405 -0.016742639054651991 0.0050000000000000027 +0.0090000000000000011 -0.012500000000000001 0.005000000000000001 +0.0090000000000000011 -0.012500000000000001 -1.0928757898653885e-18 +0 0 0 +0 0 0.0050000000000000001 +0.046908852432963555 -0.025000000000000001 0 +0.057977619364778396 -0.049999999999999996 0 +0.058479237019024931 -0.05000000000000001 0.005000000000000001 +0.046236859735904988 -0.042717830289948244 0.005000000000000001 +0.01924263849479349 -0.016742640754232596 0 +0.032991585080142209 -0.020871321159792972 0.005000000000000001 +0.034457969765570209 -0.014564339811441857 0 +0.01924263905465199 -0.016742642319585947 0.0050000000000000027 +0.033994482452785038 -0.035435660579896493 0.005000000000000001 +0.033075745463878516 -0.029128679622883714 0 +0.010757363249023542 -0.016742635541443129 0 +0.014999999999999999 -0.018500000000000003 0.005000000000000001 +0.014999999999999999 -0.018499999999999999 -1.0928757898653885e-18 +0 -0.017493477351288467 0.0050000000000000018 +0.0053786788402070251 -0.0246245795232647 0.0050000000000000001 +0 -0.017181498128596803 0 +0.019242642319585949 -0.033257360945348008 0.0050000000000000027 +0.035840662510061932 -0.05000000000000001 0 +0.014999999999999998 -0.037499999999999999 0.005000000000000001 +0.034997379825427874 -0.050000000000000003 0.005000000000000001 +0 -0.050000000000000003 0.0050000000000000001 +0.019242640687118968 -0.025000001632466979 0.005000000000000001 +0.019242638494793476 -0.025000000000000012 0 +0.020999999999999998 -0.037500000000000006 0.005000000000000001 +0.019242639054651983 -0.041742642319585944 0.0050000000000000027 +0.028420331255030962 -0.043750000000000004 0 +0.019242638494793463 -0.033257359245767427 0 +0.020999999999999998 -0.037500000000000006 -1.0928757898653885e-18 +0.0053786816245117745 -0.024780568706423162 0 +0.014999999999999999 -0.0315 0.005000000000000001 +0 -0.032506519991877404 0.005000000000000001 +0.010757360945348005 -0.033257357680414046 0.0050000000000000018 +0 -0.0328185018714032 0 +0.015000000217977132 -0.037499999999999999 0.0025000000000000005 +0.0090000000000000011 -0.037500000000000006 0.005000000000000001 +0.017933762100813461 -0.050000000000000003 0 +0.014999999999999999 -0.043500000000000004 0.005000000000000001 +0 -0.050000000000000003 0 +0.010757357680414054 -0.041742639054651996 0.0050000000000000027 +0.017643832420244258 -0.050000000000000017 0.005000000000000001 +0.014999999999999999 -0.0315 -1.0928757898653885e-18 +0.020999999999999998 -0.037500000000000006 -0.0049999999999999992 +0.014999999999999999 -0.0315 -0.0049999999999999992 +0.019242642319585949 -0.033257360945348008 -0.0049999999999999992 +0.019242638494793483 -0.041742640754232598 0 +0.01500000043595427 -0.037500000000000006 0 +0.017414213233314928 -0.037500000272077831 -0.0025000000000000001 +0.014999999999999999 -0.043500000000000004 -1.0928757898653885e-18 +0.019242639054651983 -0.041742642319585944 -0.0049999999999999992 +0.010757363249023577 -0.033257364458556885 0 +0.0090000000000000011 -0.037500000000000006 -1.0928757898653885e-18 +0.010757360945348005 -0.033257357680414046 -0.0049999999999999992 +0.01075736324902361 -0.04174263554144312 0 +0.014999999999999998 -0.037499999999999999 -0.0049999999999999992 +0.014999999999999999 -0.043500000000000004 -0.0049999999999999992 +0.0090000000000000011 -0.037500000000000006 -0.0049999999999999992 +0.010757357680414054 -0.041742639054651996 -0.0050000000000000001 + +4 # number of element types + +# Type #0 + +3 vtx # type name + + +1 # number of vertices per element +52 # number of elements +# Elements +1 +3 +8 +9 +11 +12 +14 +21 +22 +26 +33 +38 +40 +42 +44 +48 +75 +89 +105 +106 +108 +114 +130 +133 +138 +140 +141 +153 +157 +160 +163 +169 +171 +172 +173 +174 +186 +187 +195 +198 +202 +204 +209 +211 +212 +215 +216 +217 +222 +225 +229 +230 + +52 # number of geometric entity indices +# Geometric entity indices +51 +50 +39 +36 +45 +37 +49 +48 +44 +47 +33 +35 +43 +34 +42 +41 +46 +38 +40 +31 +30 +32 +29 +28 +21 +20 +19 +25 +26 +27 +7 +16 +9 +8 +2 +3 +18 +17 +1 +24 +23 +15 +6 +12 +0 +14 +22 +13 +11 +5 +10 +4 + +# Type #1 + +3 edg # type name + + +2 # number of vertices per element +177 # number of elements +# Elements +1 0 +0 3 +3 4 +6 9 +5 11 +11 1 +12 6 +12 11 +13 1 +14 13 +20 14 +21 20 +4 21 +9 22 +22 5 +22 3 +24 22 +8 26 +8 27 +29 8 +9 30 +27 33 +26 34 +36 12 +38 36 +39 11 +38 40 +40 39 +40 14 +41 38 +42 41 +30 42 +43 40 +42 44 +44 43 +44 24 +44 21 +33 48 +26 48 +49 29 +51 33 +34 52 +48 61 +63 49 +52 64 +66 51 +61 72 +74 63 +64 75 +80 66 +75 81 +76 82 +72 87 +89 76 +89 74 +75 90 +81 94 +82 95 +95 96 +98 80 +94 101 +96 102 +101 103 +102 104 +87 105 +103 105 +106 89 +108 107 +90 108 +106 109 +109 110 +114 98 +104 114 +107 115 +110 116 +115 119 +105 122 +123 106 +108 125 +116 127 +127 128 +128 129 +129 130 +130 114 +119 132 +132 133 +122 133 +125 134 +135 123 +138 139 +138 140 +137 141 +140 141 +141 142 +143 140 +146 138 +150 130 +133 151 +142 153 +153 154 +140 155 +145 156 +156 135 +155 157 +157 153 +134 159 +159 144 +139 160 +160 157 +163 137 +164 163 +169 164 +154 169 +170 171 +171 146 +172 163 +171 172 +172 143 +144 173 +173 174 +174 145 +151 176 +177 150 +179 157 +160 182 +172 185 +186 170 +182 186 +185 187 +187 169 +186 187 +187 179 +174 188 +173 190 +176 192 +194 177 +191 198 +198 199 +201 202 +198 202 +204 191 +188 205 +205 195 +206 204 +190 207 +209 206 +192 210 +199 211 +212 195 +207 212 +210 212 +211 213 +213 209 +195 214 +214 194 +204 215 +215 201 +202 216 +215 217 +217 218 +218 216 +219 202 +211 222 +222 219 +216 223 +224 215 +209 225 +225 224 +226 217 +225 227 +227 222 +222 229 +223 229 +225 230 +230 226 +229 231 +231 230 + +177 # number of geometric entity indices +# Geometric entity indices +83 +83 +81 +63 +76 +78 +63 +65 +82 +82 +80 +80 +81 +64 +76 +77 +72 +67 +56 +66 +59 +56 +79 +61 +61 +74 +62 +74 +75 +58 +58 +59 +71 +60 +71 +72 +73 +57 +70 +66 +54 +79 +68 +66 +79 +54 +68 +66 +79 +54 +69 +55 +68 +55 +66 +52 +69 +55 +55 +54 +69 +55 +69 +55 +68 +69 +53 +48 +52 +50 +50 +54 +55 +48 +50 +48 +49 +7 +6 +50 +50 +50 +50 +51 +48 +48 +49 +6 +7 +43 +41 +18 +39 +40 +21 +23 +4 +2 +40 +35 +42 +7 +7 +42 +46 +6 +6 +43 +47 +18 +17 +17 +35 +22 +23 +16 +19 +21 +6 +5 +7 +2 +4 +37 +38 +20 +22 +38 +20 +34 +36 +37 +3 +1 +2 +4 +33 +28 +32 +45 +33 +3 +3 +15 +1 +15 +2 +28 +0 +1 +2 +14 +14 +4 +4 +31 +32 +44 +29 +30 +30 +27 +26 +27 +25 +13 +11 +13 +10 +12 +12 +24 +25 +8 +10 +9 +9 + +# Type #2 + +3 tri # type name + + +3 # number of vertices per element +510 # number of elements +# Elements +1 0 2 +0 3 2 +4 2 3 +0 5 3 +0 1 5 +5 11 6 +5 11 10 +11 5 1 +12 6 11 +1 13 11 +13 1 2 +14 13 2 +6 15 9 +12 15 6 +5 18 11 +14 2 20 +20 2 21 +21 2 4 +9 22 6 +5 6 22 +5 22 18 +22 3 5 +9 23 6 +24 18 22 +22 24 3 +4 24 21 +4 3 24 +5 25 22 +10 25 5 +8 27 26 +6 28 12 +6 23 28 +8 26 29 +30 9 15 +9 30 22 +24 22 30 +29 31 8 +27 8 31 +28 31 29 +23 31 28 +30 32 9 +9 32 23 +23 32 31 +27 31 33 +29 26 34 +10 34 25 +34 26 25 +11 35 10 +10 35 34 +36 15 12 +36 12 37 +12 28 37 +38 15 36 +11 39 12 +36 39 38 +36 12 39 +11 39 35 +39 11 18 +39 11 13 +40 38 39 +39 18 40 +14 20 40 +14 40 13 +39 13 40 +38 41 15 +41 42 15 +42 30 15 +40 43 38 +41 43 42 +41 38 43 +40 18 43 +43 40 20 +44 42 43 +42 44 30 +24 30 44 +43 18 44 +44 18 24 +21 44 20 +43 20 44 +44 21 24 +24 22 45 +22 25 45 +44 24 46 +24 45 46 +45 25 47 +47 25 26 +27 48 26 +33 48 27 +47 26 48 +34 49 29 +28 29 49 +37 28 49 +42 50 30 +30 50 32 +33 51 48 +51 33 31 +32 51 31 +50 51 32 +49 34 52 +35 52 34 +35 39 53 +53 52 35 +36 54 38 +36 37 54 +37 49 55 +54 37 55 +38 56 41 +38 54 56 +43 57 40 +40 57 58 +40 58 39 +58 53 39 +41 59 42 +41 56 59 +42 59 50 +46 60 44 +44 60 43 +43 60 57 +51 61 48 +47 48 61 +46 61 60 +45 47 61 +46 45 61 +62 57 60 +52 63 49 +55 49 63 +63 52 64 +63 65 55 +61 51 66 +50 66 51 +50 59 66 +52 68 64 +53 68 52 +53 58 68 +55 65 69 +54 69 56 +54 55 69 +59 70 66 +56 70 59 +56 69 70 +58 71 68 +57 71 58 +62 71 57 +66 72 61 +60 61 72 +62 60 72 +62 72 73 +73 71 62 +64 74 63 +65 63 74 +67 65 74 +74 64 75 +67 74 76 +64 77 75 +77 64 68 +67 78 65 +65 78 69 +72 66 80 +80 66 70 +70 79 80 +81 75 77 +76 82 67 +67 82 78 +83 77 68 +71 83 68 +84 69 78 +69 84 70 +79 70 84 +83 71 85 +73 85 71 +86 79 84 +80 87 72 +85 73 87 +73 72 87 +88 85 87 +89 74 75 +89 76 74 +89 75 90 +91 75 81 +90 75 91 +92 76 89 +93 82 76 +76 92 93 +81 77 94 +94 77 83 +95 78 82 +78 95 84 +96 84 95 +86 84 96 +79 86 97 +87 80 98 +98 80 79 +97 98 79 +99 81 94 +91 81 99 +100 95 82 +82 93 100 +94 83 101 +101 83 85 +102 86 96 +103 101 85 +88 103 85 +102 104 86 +97 86 104 +98 105 87 +88 105 103 +88 87 105 +89 90 106 +92 89 106 +91 99 107 +106 90 108 +91 107 108 +90 91 108 +92 106 109 +109 93 92 +93 109 110 +110 100 93 +111 94 101 +94 111 99 +112 96 95 +95 100 112 +113 102 96 +96 112 113 +114 105 98 +97 114 98 +104 114 97 +99 115 107 +115 99 111 +100 110 116 +116 112 100 +117 101 103 +117 111 101 +118 104 102 +102 113 118 +111 119 115 +117 119 111 +120 103 105 +120 117 103 +121 114 104 +121 104 118 +114 122 105 +122 120 105 +106 123 109 +106 108 123 +115 124 107 +108 107 125 +107 124 125 +123 108 125 +116 110 126 +109 123 126 +110 109 126 +116 126 127 +112 116 127 +127 113 112 +113 127 128 +128 118 113 +118 128 129 +121 118 129 +114 130 122 +121 130 114 +121 129 130 +119 131 115 +124 115 131 +119 132 131 +117 132 119 +120 132 117 +130 133 122 +132 120 133 +122 133 120 +125 135 123 +134 135 125 +135 136 123 +126 123 136 +140 141 143 +137 143 141 +140 143 138 +140 143 144 +138 139 145 +138 145 146 +146 138 143 +125 147 134 +124 147 125 +147 124 131 +128 148 129 +136 148 126 +128 127 148 +127 126 148 +131 149 147 +130 150 133 +130 129 150 +150 129 148 +150 151 133 +133 151 132 +132 151 131 +149 131 151 +152 148 136 +140 144 155 +142 155 153 +142 141 155 +140 155 141 +140 138 155 +139 155 138 +145 139 156 +145 156 144 +157 153 155 +134 147 158 +144 159 155 +158 159 134 +156 159 144 +159 156 135 +134 159 135 +139 160 156 +157 155 160 +139 160 155 +156 161 135 +136 135 161 +152 136 161 +153 162 142 +142 162 141 +137 141 162 +154 162 153 +137 163 143 +163 137 162 +164 163 162 +160 139 165 +139 138 165 +146 165 138 +157 167 155 +155 167 140 +143 140 167 +169 164 162 +169 162 154 +146 143 171 +171 165 146 +170 165 171 +172 143 163 +172 171 143 +143 167 172 +143 173 144 +143 172 173 +144 173 145 +146 174 171 +146 145 174 +174 145 173 +147 149 175 +175 158 147 +149 151 176 +149 176 175 +151 150 177 +176 151 177 +148 177 150 +152 177 148 +178 152 161 +177 152 178 +179 167 157 +154 179 169 +154 153 179 +157 179 153 +157 160 179 +180 161 156 +160 180 156 +157 155 181 +181 158 175 +157 181 179 +181 155 159 +158 181 159 +182 180 160 +182 160 165 +182 179 160 +180 183 161 +183 178 161 +184 181 175 +172 163 185 +164 185 163 +164 169 185 +172 185 171 +170 171 185 +185 172 167 +170 185 186 +186 165 170 +186 182 165 +182 186 179 +187 185 169 +187 186 185 +185 167 187 +187 167 179 +187 169 179 +187 179 186 +171 174 188 +171 188 170 +170 189 186 +189 170 188 +188 174 190 +173 190 174 +172 190 173 +172 185 190 +176 177 192 +192 175 176 +184 175 192 +192 177 194 +178 194 177 +178 183 194 +186 196 182 +196 180 182 +186 189 196 +180 196 183 +191 183 196 +187 179 197 +184 197 181 +179 181 197 +198 183 191 +198 191 193 +198 199 183 +183 199 194 +199 198 193 +200 184 192 +201 197 184 +191 198 201 +202 184 200 +201 184 202 +202 201 198 +203 190 185 +185 187 203 +187 197 203 +204 191 196 +204 196 189 +191 204 193 +191 201 204 +188 190 205 +189 188 205 +189 205 206 +206 204 189 +206 193 204 +207 205 190 +205 207 195 +203 207 190 +209 205 195 +209 206 205 +209 193 206 +194 210 192 +200 192 210 +211 199 193 +212 195 207 +213 209 195 +213 193 209 +211 193 213 +214 210 194 +195 212 214 +210 214 212 +211 213 214 +213 195 214 +211 214 199 +214 194 199 +215 197 201 +215 203 197 +215 204 201 +202 216 201 +215 201 217 +218 201 216 +218 217 201 +219 202 200 +219 200 210 +202 219 216 +202 198 219 +199 219 198 +199 211 219 +202 220 201 +201 220 215 +219 220 202 +222 219 210 +222 220 219 +222 219 211 +223 216 219 +224 203 215 +203 224 207 +215 217 224 +215 224 204 +206 224 209 +206 204 224 +224 215 220 +225 212 207 +225 207 224 +225 209 224 +224 220 225 +226 224 217 +227 210 212 +227 212 225 +222 210 227 +225 227 209 +222 211 227 +213 227 211 +213 209 227 +227 225 220 +227 220 222 +216 228 218 +218 228 217 +226 217 228 +223 228 216 +222 227 229 +229 228 223 +222 229 219 +223 219 229 +225 230 227 +226 230 224 +225 224 230 +230 226 228 +231 227 230 +231 229 227 +231 230 228 +229 231 228 + +510 # number of geometric entity indices +# Geometric entity indices +42 +42 +42 +41 +41 +35 +36 +41 +35 +40 +42 +42 +31 +31 +37 +42 +42 +42 +35 +35 +37 +41 +29 +37 +39 +39 +39 +36 +36 +30 +29 +29 +4 +31 +33 +33 +29 +29 +29 +29 +29 +29 +29 +29 +4 +36 +36 +36 +36 +31 +29 +29 +31 +34 +34 +34 +36 +37 +40 +34 +37 +38 +40 +40 +31 +31 +31 +32 +32 +32 +37 +38 +32 +33 +33 +37 +37 +38 +38 +39 +36 +36 +36 +36 +36 +36 +30 +30 +36 +4 +29 +29 +29 +29 +1 +29 +29 +29 +4 +36 +36 +36 +29 +29 +29 +29 +29 +29 +36 +36 +36 +36 +29 +29 +29 +36 +36 +36 +1 +36 +36 +36 +36 +36 +4 +29 +4 +29 +1 +29 +29 +36 +36 +36 +29 +29 +29 +29 +29 +29 +36 +36 +36 +1 +36 +36 +36 +36 +4 +29 +29 +4 +29 +36 +36 +29 +29 +1 +29 +29 +36 +29 +29 +36 +36 +29 +29 +29 +36 +36 +29 +1 +36 +36 +36 +4 +29 +4 +27 +27 +28 +28 +28 +36 +36 +29 +29 +29 +29 +29 +1 +29 +29 +27 +27 +28 +28 +36 +36 +29 +36 +36 +29 +29 +1 +36 +36 +4 +28 +27 +4 +27 +27 +28 +28 +28 +28 +27 +27 +28 +28 +28 +28 +1 +29 +29 +27 +27 +28 +28 +27 +27 +28 +28 +27 +27 +27 +27 +28 +28 +1 +27 +3 +4 +2 +2 +2 +4 +3 +3 +3 +3 +28 +28 +28 +28 +28 +28 +1 +28 +28 +2 +2 +2 +27 +27 +1 +27 +27 +4 +4 +3 +3 +13 +13 +16 +2 +3 +3 +16 +2 +2 +2 +3 +3 +3 +3 +2 +1 +3 +3 +1 +2 +2 +2 +3 +2 +25 +25 +25 +26 +26 +3 +4 +25 +2 +2 +2 +4 +4 +4 +3 +26 +26 +3 +3 +3 +14 +14 +14 +14 +13 +14 +14 +18 +18 +18 +17 +17 +17 +14 +14 +16 +18 +18 +13 +16 +17 +2 +2 +4 +3 +3 +4 +2 +2 +2 +2 +1 +1 +3 +3 +3 +3 +17 +23 +23 +23 +24 +3 +3 +2 +2 +2 +2 +2 +3 +18 +24 +3 +3 +2 +12 +12 +12 +15 +15 +17 +15 +18 +18 +24 +12 +15 +17 +17 +23 +24 +3 +3 +3 +3 +0 +0 +2 +2 +1 +2 +2 +1 +3 +3 +3 +3 +3 +3 +3 +2 +2 +2 +3 +11 +3 +3 +11 +2 +2 +22 +2 +2 +22 +2 +2 +2 +3 +3 +11 +22 +0 +3 +3 +3 +11 +0 +0 +2 +3 +3 +11 +1 +2 +11 +0 +3 +11 +11 +1 +1 +1 +3 +3 +3 +3 +2 +2 +22 +21 +21 +21 +21 +2 +2 +19 +20 +20 +20 +10 +10 +10 +2 +10 +20 +19 +2 +2 +6 +9 +9 +9 +10 +2 +2 +9 +10 +6 +2 +2 +2 +8 +8 +8 +8 +10 +10 +7 +7 +7 +7 +5 +7 +19 +19 +5 +6 +6 +7 +5 +5 +7 +7 + +# Type #3 + +3 tet # type name + + +4 # number of vertices per element +638 # number of elements +# Elements +0 3 5 2 +0 1 2 5 +5 11 6 10 +11 1 5 2 +12 11 10 6 +7 9 6 15 +12 6 15 11 +5 6 11 15 +7 6 5 15 +16 14 13 2 +13 1 11 16 +16 13 1 2 +16 1 11 2 +18 5 11 15 +7 18 15 5 +18 5 2 11 +16 18 2 11 +19 7 18 15 +17 19 18 15 +16 14 2 20 +16 2 18 20 +2 20 21 18 +5 22 6 7 +9 7 6 22 +7 22 18 5 +18 5 22 2 +22 3 2 5 +6 5 10 23 +9 23 22 6 +5 6 22 23 +7 22 24 18 +7 19 18 24 +22 3 24 2 +4 21 24 2 +18 24 2 22 +4 3 2 24 +18 2 24 21 +5 23 25 10 +22 23 25 5 +6 10 28 23 +6 10 12 28 +10 28 23 25 +7 9 15 30 +7 19 30 15 +7 9 30 22 +7 24 22 30 +7 19 24 30 +8 26 31 29 +8 26 27 31 +25 23 31 28 +9 30 22 32 +24 30 32 22 +9 23 32 22 +29 28 34 31 +28 10 34 25 +25 28 31 34 +29 34 26 31 +25 31 26 34 +10 28 34 35 +11 12 10 35 +10 12 28 35 +37 35 28 12 +11 39 12 35 +36 12 39 37 +37 35 12 39 +11 12 39 15 +17 18 39 15 +18 39 15 11 +36 12 15 39 +36 38 39 15 +17 38 15 39 +39 16 13 11 +16 39 18 11 +17 40 39 18 +40 17 39 38 +16 39 13 40 +16 14 40 13 +16 39 40 18 +14 16 40 20 +17 41 15 38 +17 19 15 41 +19 42 30 15 +19 42 15 41 +19 41 43 42 +17 19 41 43 +17 43 40 18 +17 40 43 38 +17 41 38 43 +17 19 43 18 +16 40 43 18 +40 43 20 16 +16 43 20 18 +19 42 44 30 +19 44 42 43 +19 44 18 24 +19 24 30 44 +19 44 43 18 +44 24 21 18 +21 44 18 20 +43 44 20 18 +24 22 32 45 +32 22 23 45 +22 23 45 25 +32 45 23 31 +25 23 45 31 +24 44 46 30 +24 30 46 32 +42 44 30 46 +24 45 32 46 +31 47 25 26 +31 47 26 27 +47 31 33 27 +31 47 45 25 +33 48 47 27 +27 47 26 48 +35 28 34 49 +34 29 49 28 +35 37 28 49 +42 46 30 50 +30 46 32 50 +46 32 50 45 +33 48 51 47 +47 31 51 33 +45 32 51 31 +47 45 51 31 +32 45 51 50 +49 35 52 34 +35 37 49 52 +35 37 52 53 +35 37 53 39 +40 38 39 54 +36 38 54 39 +53 54 39 37 +36 39 54 37 +52 49 55 37 +53 54 37 55 +55 53 52 37 +38 40 56 54 +56 38 41 57 +38 40 57 56 +41 43 57 38 +40 43 38 57 +58 54 39 53 +57 40 58 56 +58 40 39 54 +58 54 56 40 +41 42 59 43 +44 42 43 59 +42 50 59 46 +44 42 59 46 +41 43 59 57 +41 57 59 56 +43 44 59 60 +59 43 60 57 +44 46 59 60 +60 50 46 59 +51 61 45 47 +51 61 47 48 +50 46 61 60 +46 50 61 45 +61 50 51 45 +59 60 62 57 +57 56 62 59 +52 55 49 63 +61 50 66 51 +60 59 66 50 +50 60 61 66 +63 52 68 64 +53 55 68 54 +65 63 68 64 +55 63 52 68 +55 68 65 63 +55 53 68 52 +53 54 68 58 +58 54 69 56 +68 55 65 69 +68 55 69 54 +58 54 68 69 +62 56 70 59 +69 71 58 56 +57 56 71 62 +56 57 71 58 +69 71 68 58 +71 69 70 56 +62 70 56 71 +60 59 72 66 +60 62 72 59 +66 60 61 72 +72 66 59 70 +62 70 72 59 +70 73 71 62 +70 73 62 72 +64 74 65 63 +74 64 77 75 +77 67 65 74 +67 77 76 74 +65 77 64 68 +64 74 77 65 +76 75 74 77 +68 65 78 69 +65 77 68 78 +67 77 65 78 +73 70 71 79 +72 80 66 70 +73 80 72 70 +73 70 79 80 +81 76 77 75 +81 76 82 77 +67 76 77 82 +67 77 78 82 +69 71 83 68 +83 69 68 78 +78 83 77 68 +83 84 69 78 +83 71 69 84 +71 69 84 70 +79 70 71 84 +84 83 71 85 +85 79 71 84 +85 79 73 71 +85 86 79 84 +79 85 73 87 +80 73 72 87 +87 73 79 80 +79 88 85 87 +85 79 86 88 +89 75 74 76 +76 81 91 75 +89 76 92 75 +89 75 92 90 +92 76 91 75 +91 90 92 75 +92 76 93 91 +93 76 82 81 +76 93 91 81 +78 83 94 77 +82 81 77 94 +82 78 94 77 +95 94 82 78 +83 78 95 84 +95 94 78 83 +95 94 83 96 +84 96 95 83 +97 88 86 79 +87 98 80 79 +97 88 79 98 +98 88 79 87 +82 99 81 94 +82 93 81 99 +93 91 81 99 +95 100 82 94 +100 82 94 99 +100 82 99 93 +96 101 84 86 +101 96 83 94 +96 84 101 83 +84 83 85 101 +86 84 85 101 +102 96 86 101 +86 103 101 85 +88 97 86 103 +102 86 103 101 +88 86 85 103 +104 97 103 86 +102 103 86 104 +98 88 87 105 +104 97 105 103 +97 88 98 105 +88 97 103 105 +92 89 90 106 +93 91 99 107 +106 108 90 92 +91 90 108 92 +109 107 108 91 +106 109 108 92 +92 109 108 91 +92 109 91 93 +109 93 107 91 +110 93 99 107 +93 109 107 110 +100 110 93 99 +95 94 96 111 +95 100 94 111 +100 99 94 111 +96 101 111 94 +112 95 96 111 +112 95 111 100 +112 96 113 111 +96 113 101 102 +96 113 111 101 +114 97 98 105 +114 104 97 105 +110 99 115 107 +100 110 99 115 +100 99 111 115 +116 100 115 110 +116 100 111 115 +112 116 100 111 +102 117 101 103 +113 102 117 101 +113 117 111 101 +118 104 103 102 +113 102 118 117 +102 118 117 103 +113 117 119 111 +116 115 111 119 +104 118 103 120 +104 103 105 120 +118 120 117 103 +121 104 120 118 +114 104 105 121 +121 104 105 120 +120 122 105 121 +114 105 122 121 +109 108 107 123 +106 108 109 123 +110 115 124 107 +109 107 124 123 +107 110 109 124 +123 125 108 107 +123 125 107 124 +110 124 126 109 +116 115 126 110 +124 126 109 123 +124 126 115 110 +127 119 116 111 +112 127 111 113 +112 116 111 127 +127 113 119 111 +127 113 128 119 +113 128 119 117 +113 128 117 118 +121 129 118 120 +121 130 122 114 +119 127 131 128 +116 115 131 126 +126 124 115 131 +127 119 131 116 +116 119 131 115 +116 127 126 131 +128 119 132 131 +118 129 128 132 +129 118 120 132 +128 117 132 119 +128 118 132 117 +118 120 132 117 +129 132 120 133 +130 129 121 133 +121 129 120 133 +130 133 121 122 +120 122 121 133 +125 123 135 124 +126 124 131 136 +124 123 135 136 +126 124 136 123 +140 138 145 143 +140 144 143 145 +138 146 145 143 +124 125 147 135 +147 136 124 135 +147 136 131 124 +134 135 147 125 +131 127 126 148 +131 136 148 126 +131 128 127 148 +128 131 132 148 +136 147 131 148 +132 128 148 129 +148 131 149 147 +130 133 150 129 +129 133 150 132 +129 132 150 148 +148 131 132 151 +150 151 132 133 +150 151 148 132 +148 149 131 151 +151 150 148 149 +136 147 148 152 +152 148 149 147 +139 138 145 155 +140 144 145 155 +140 138 155 145 +144 145 155 156 +139 155 145 156 +134 135 158 147 +134 158 135 159 +156 159 155 144 +159 158 135 156 +157 155 160 156 +139 160 155 156 +136 147 161 135 +136 147 152 161 +158 156 161 135 +158 135 161 147 +140 141 162 143 +137 141 143 162 +137 163 162 143 +165 166 146 138 +165 166 139 160 +140 155 138 166 +146 138 166 143 +139 138 155 166 +140 143 166 138 +157 155 166 160 +165 166 138 139 +139 160 166 155 +167 143 140 162 +167 166 157 155 +167 166 140 143 +167 166 155 140 +168 153 154 162 +167 168 140 155 +162 168 142 141 +168 153 162 142 +168 167 140 162 +140 155 168 141 +162 168 141 140 +168 157 155 167 +142 168 153 155 +142 155 141 168 +157 168 155 153 +168 162 169 167 +162 168 169 154 +165 166 171 146 +165 166 170 171 +146 171 143 166 +172 163 143 162 +167 143 162 172 +167 166 143 172 +172 143 171 166 +146 143 171 173 +144 145 173 143 +143 172 171 173 +146 143 173 145 +146 174 173 171 +174 173 145 146 +175 161 152 147 +175 161 147 158 +152 149 175 147 +152 149 176 175 +176 177 151 149 +177 176 152 149 +151 150 149 177 +149 152 177 148 +149 148 177 150 +177 176 178 152 +178 152 176 175 +161 175 152 178 +157 168 153 179 +168 157 167 179 +154 179 168 169 +154 168 179 153 +157 179 160 166 +167 166 179 157 +157 160 179 180 +157 155 156 181 +181 158 156 161 +175 161 158 181 +161 175 180 181 +157 179 181 180 +157 160 180 181 +181 180 161 156 +159 156 155 181 +157 160 181 156 +181 180 156 160 +159 156 181 158 +182 160 180 179 +165 166 160 182 +182 160 179 166 +161 175 183 180 +161 175 178 183 +184 180 183 175 +180 184 181 175 +162 167 185 169 +172 163 162 185 +167 185 172 162 +164 169 162 185 +164 163 185 162 +170 171 166 185 +172 185 166 171 +167 166 172 185 +182 186 166 179 +170 186 185 166 +165 166 186 170 +165 166 182 186 +187 179 169 168 +187 185 167 169 +167 168 179 187 +167 168 187 169 +187 185 186 166 +167 166 185 187 +187 179 166 186 +167 166 187 179 +170 171 185 188 +170 185 189 188 +170 185 186 189 +188 190 174 171 +190 188 185 171 +172 185 171 190 +172 171 173 190 +174 173 171 190 +188 190 185 189 +183 184 175 192 +178 192 175 176 +178 183 175 192 +176 177 178 192 +178 192 177 194 +194 192 183 178 +191 184 196 183 +184 180 196 183 +187 179 186 197 +196 186 182 197 +182 179 197 186 +180 179 181 197 +180 184 197 181 +196 197 182 180 +179 182 197 180 +196 197 180 184 +198 191 183 184 +198 199 200 183 +183 200 198 184 +200 183 199 194 +194 192 200 183 +183 200 184 192 +191 201 184 198 +191 201 196 184 +197 196 201 184 +202 201 198 184 +202 198 200 184 +203 189 185 190 +187 186 203 197 +196 197 203 186 +185 187 186 203 +189 203 185 186 +189 186 196 203 +191 204 196 201 +189 204 203 196 +189 188 190 205 +203 189 190 205 +189 203 206 205 +206 189 204 203 +203 207 205 190 +193 208 206 204 +193 208 198 199 +193 208 191 198 +191 204 201 208 +202 201 208 198 +193 208 204 191 +191 198 208 201 +205 207 209 195 +193 208 209 206 +200 192 194 210 +200 199 210 194 +193 208 199 211 +195 212 207 209 +213 195 209 212 +193 208 213 209 +193 208 211 213 +214 210 199 194 +195 212 213 214 +211 214 210 199 +215 204 201 196 +204 215 203 196 +197 215 201 196 +197 215 196 203 +215 201 204 208 +199 211 219 210 +202 219 200 198 +199 219 198 200 +219 199 210 200 +202 219 198 208 +199 211 208 219 +199 198 219 208 +220 208 201 215 +220 208 202 201 +220 208 219 202 +220 221 215 201 +221 202 220 219 +202 221 216 219 +215 201 221 217 +221 202 201 220 +218 221 216 201 +218 201 217 221 +202 221 201 216 +222 219 211 210 +220 221 219 222 +222 219 208 211 +220 208 222 219 +223 221 219 216 +207 205 224 203 +215 224 204 203 +207 205 209 224 +224 206 203 205 +206 224 203 204 +206 209 205 224 +220 208 215 224 +206 204 208 224 +215 224 208 204 +206 209 224 208 +225 209 207 212 +225 224 207 209 +220 208 224 225 +225 224 209 208 +222 211 227 210 +227 225 212 209 +211 213 227 214 +211 214 227 210 +210 214 227 212 +213 227 214 212 +213 227 212 209 +225 227 208 209 +220 208 225 227 +222 227 211 208 +213 209 208 227 +220 208 227 222 +213 211 227 208 +221 216 223 228 +220 224 228 225 +228 221 218 217 +220 224 215 228 +215 217 228 224 +226 217 224 228 +221 216 228 218 +221 220 215 228 +220 227 225 228 +228 221 217 215 +222 219 229 221 +228 220 227 229 +228 221 229 223 +221 228 229 220 +222 227 220 229 +223 219 221 229 +220 221 222 229 +225 230 224 228 +226 230 228 224 +225 230 228 227 +231 229 228 227 +231 230 227 228 + +638 # number of geometric entity indices +# Geometric entity indices +7 +7 +1 +7 +1 +6 +6 +6 +6 +7 +7 +7 +7 +6 +6 +7 +7 +6 +6 +7 +7 +7 +6 +6 +6 +7 +7 +1 +1 +1 +6 +6 +7 +7 +7 +7 +7 +1 +1 +1 +1 +1 +6 +6 +6 +6 +6 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +6 +6 +6 +6 +6 +6 +7 +7 +6 +6 +7 +7 +7 +7 +6 +6 +6 +6 +6 +6 +6 +6 +6 +6 +7 +7 +7 +6 +6 +6 +6 +6 +7 +7 +7 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +4 +4 +4 +5 +5 +5 +5 +5 +5 +5 +5 +5 +4 +5 +5 +5 +4 +4 +4 +4 +4 +4 +4 +4 +4 +4 +4 +4 +4 +5 +5 +5 +4 +4 +5 +5 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +4 +4 +4 +4 +5 +5 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +5 +5 +1 +1 +1 +1 +4 +4 +4 +4 +4 +5 +5 +5 +5 +5 +5 +5 +4 +4 +4 +4 +5 +5 +5 +5 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +1 +3 +3 +3 +3 +3 +3 +3 +1 +3 +1 +1 +3 +1 +1 +3 +3 +1 +1 +1 +1 +1 +1 +1 +3 +1 +1 +1 +1 +3 +3 +3 +3 +3 +3 +2 +2 +2 +2 +2 +2 +2 +2 +1 +2 +3 +3 +2 +1 +1 +1 +1 +1 +1 +3 +3 +3 +3 +1 +1 +3 +3 +1 +1 +1 +1 +1 +1 +1 +3 +3 +3 +3 +3 +3 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 +2 + +# --------- Object 1 ---------- + +0 0 1 +9 Selection # class +0 # Version +8 Ti Bolts # Label +5 mesh1 # Geometry/mesh tag +3 # Dimension +6 # Number of entities +# Entities +2 +3 +4 +5 +6 +7 + +# --------- Object 2 ---------- + +0 0 1 +9 Selection # class +0 # Version +12 Copper Piece # Label +5 mesh1 # Geometry/mesh tag +3 # Dimension +1 # Number of entities +# Entities +1 + +# --------- Object 3 ---------- + +0 0 1 +9 Selection # class +0 # Version +11 Single Bolt # Label +5 mesh1 # Geometry/mesh tag +3 # Dimension +2 # Number of entities +# Entities +2 +3 diff --git a/tests/grid/grids/comsol/mesh_example_intro.mphtxt b/tests/grid/grids/comsol/mesh_example_intro.mphtxt new file mode 100644 index 0000000000..d6065e6a1d --- /dev/null +++ b/tests/grid/grids/comsol/mesh_example_intro.mphtxt @@ -0,0 +1,215 @@ +# Created by COMSOL Multiphysics. + +# Major & minor version +0 1 +1 # number of tags +# Tags +5 mesh1 +1 # number of types +# Types +3 obj + +# --------- Object 0 ---------- + +0 0 1 +4 Mesh # class +4 # version +3 # sdim +12 # number of mesh vertices +0 # lowest mesh vertex index + +# Mesh vertex coordinates +0 0 0 +0 0 1 +0 1 1 +1 0 1 +0 1 0 +1 0 0 +1 1 1 +2 0 1 +1 1 0 +2 0 0 +2 1 1 +2 1 0 + +6 # number of element types + +# Type #0 + +3 tet # type name + + +4 # number of vertices per element +5 # number of elements +# Elements +0 5 4 1 +2 4 6 1 +5 4 1 6 +3 5 1 6 +8 5 6 4 + +5 # number of geometric entity indices +# Geometric entity indices +1 +1 +1 +1 +2 + +# Type #1 + +5 prism # type name + + +6 # number of vertices per element +2 # number of elements +# Elements +3 5 6 7 9 10 +8 6 5 11 10 9 + +2 # number of geometric entity indices +# Geometric entity indices +1 +2 + +# Type #2 + +3 vtx # type name + + +1 # number of vertices per element +10 # number of elements +# Elements +0 +1 +2 +4 +5 +6 +7 +9 +10 +11 + +10 # number of geometric entity indices +# Geometric entity indices +0 +1 +3 +2 +4 +5 +7 +6 +9 +8 + +# Type #3 + +3 edg # type name + + +2 # number of vertices per element +19 # number of elements +# Elements +0 1 +1 2 +1 3 +0 4 +4 2 +0 5 +4 5 +4 6 +2 6 +3 7 +4 8 +9 7 +5 9 +9 10 +7 10 +6 10 +8 11 +11 10 +9 11 + +19 # number of geometric entity indices +# Geometric entity indices +0 +3 +4 +1 +5 +2 +6 +7 +9 +4 +8 +12 +10 +14 +15 +11 +8 +16 +13 + +# Type #4 + +3 tri # type name + + +3 # number of vertices per element +13 # number of elements +# Elements +0 1 4 +2 4 1 +0 5 1 +0 4 5 +3 1 5 +2 6 4 +2 1 6 +3 6 1 +5 6 4 +8 5 4 +8 4 6 +7 9 10 +11 10 9 + +13 # number of geometric entity indices +# Geometric entity indices +0 +0 +1 +2 +1 +4 +3 +3 +5 +6 +7 +8 +9 + +# Type #5 + +4 quad # type name + + +4 # number of vertices per element +5 # number of elements +# Elements +5 9 3 7 +3 7 6 10 +5 9 6 10 +5 8 9 11 +8 6 11 10 + +5 # number of geometric entity indices +# Geometric entity indices +1 +3 +5 +6 +7 diff --git a/tests/grid/grids/comsol/mesh_example_with_complete_geom_info.mphtxt b/tests/grid/grids/comsol/mesh_example_with_complete_geom_info.mphtxt new file mode 100644 index 0000000000..c6c8c69cda --- /dev/null +++ b/tests/grid/grids/comsol/mesh_example_with_complete_geom_info.mphtxt @@ -0,0 +1,221 @@ +# Created by COMSOL Multiphysics. + +# Major & minor version +0 1 +1 # number of tags +# Tags +5 mesh2 +1 # number of types +# Types +3 obj + +# --------- Object 0 ---------- + +0 0 1 +4 Mesh # class +4 # version +3 # sdim +12 # number of mesh vertices +0 # lowest mesh vertex index + +# Mesh vertex coordinates +0 1 1 +0 0 1 +0 0 0 +1 0 1 +0 1 0 +1 1 1 +1 0 0 +2 0 1 +1 1 0 +2 1 1 +2 0 0 +2 1 0 + +6 # number of element types + +# Type #0 + +3 tet # type name + + +4 # number of vertices per element +5 # number of elements +# Elements +2 4 1 6 +4 0 1 5 +1 6 4 5 +1 3 6 5 +6 8 4 5 + +5 # number of geometric entity indices +# Geometric entity indices +1 +1 +1 +1 +1 + +# Type #1 + +5 prism # type name + + +6 # number of vertices per element +2 # number of elements +# Elements +5 3 6 9 7 10 +6 8 5 10 11 9 + +2 # number of geometric entity indices +# Geometric entity indices +2 +2 + +# Type #2 + +3 vtx # type name + + +1 # number of vertices per element +12 # number of elements +# Elements +0 +1 +2 +3 +4 +5 +6 +7 +8 +9 +10 +11 + +12 # number of geometric entity indices +# Geometric entity indices +3 +1 +0 +5 +2 +7 +4 +9 +6 +11 +8 +10 + +# Type #3 + +3 edg # type name + + +2 # number of vertices per element +20 # number of elements +# Elements +10 7 +7 9 +11 9 +10 11 +6 3 +3 5 +8 5 +6 8 +4 0 +0 5 +4 8 +2 4 +2 6 +1 0 +1 3 +2 1 +5 9 +8 11 +6 10 +3 7 + +20 # number of geometric entity indices +# Geometric entity indices +16 +18 +19 +17 +8 +11 +13 +9 +5 +7 +6 +1 +2 +3 +4 +0 +15 +14 +10 +12 + +# Type #4 + +3 tri # type name + + +3 # number of vertices per element +14 # number of elements +# Elements +2 1 4 +2 6 1 +2 4 6 +4 1 0 +4 0 5 +0 1 5 +1 6 3 +1 3 5 +6 4 8 +8 4 5 +5 6 3 +9 7 10 +6 5 8 +10 11 9 + +14 # number of geometric entity indices +# Geometric entity indices +0 +1 +2 +0 +4 +3 +1 +3 +2 +4 +5 +10 +5 +10 + +# Type #5 + +4 quad # type name + + +4 # number of vertices per element +4 # number of elements +# Elements +5 3 9 7 +3 6 7 10 +6 8 10 11 +8 5 11 9 + +4 # number of geometric entity indices +# Geometric entity indices +8 +6 +7 +9 diff --git a/tests/grid/grids/comsol/mesh_example_with_domain_geom_info.mphtxt b/tests/grid/grids/comsol/mesh_example_with_domain_geom_info.mphtxt new file mode 100644 index 0000000000..471bf86205 --- /dev/null +++ b/tests/grid/grids/comsol/mesh_example_with_domain_geom_info.mphtxt @@ -0,0 +1,73 @@ +# Created by COMSOL Multiphysics. + +# Major & minor version +0 1 +1 # number of tags +# Tags +5 mesh4 +1 # number of types +# Types +3 obj + +# --------- Object 0 ---------- + +0 0 1 +4 Mesh # class +4 # version +3 # sdim +12 # number of mesh vertices +0 # lowest mesh vertex index + +# Mesh vertex coordinates +0 1 1 +0 0 1 +0 0 0 +1 0 1 +0 1 0 +1 1 1 +1 0 0 +2 0 1 +1 1 0 +2 1 1 +2 0 0 +2 1 0 + +2 # number of element types + +# Type #0 + +3 tet # type name + + +4 # number of vertices per element +5 # number of elements +# Elements +2 4 1 6 +4 0 1 5 +1 6 4 5 +1 3 6 5 +6 8 4 5 + +5 # number of geometric entity indices +# Geometric entity indices +1 +1 +1 +1 +1 + +# Type #1 + +5 prism # type name + + +6 # number of vertices per element +2 # number of elements +# Elements +5 3 6 9 7 10 +6 8 5 10 11 9 + +2 # number of geometric entity indices +# Geometric entity indices +2 +2 diff --git a/tests/grid/grids/comsol/mesh_example_with_domain_geom_info_1_7.mphtxt b/tests/grid/grids/comsol/mesh_example_with_domain_geom_info_1_7.mphtxt new file mode 100644 index 0000000000..22df34044b --- /dev/null +++ b/tests/grid/grids/comsol/mesh_example_with_domain_geom_info_1_7.mphtxt @@ -0,0 +1,73 @@ +# Created by COMSOL Multiphysics. + +# Major & minor version +0 1 +1 # number of tags +# Tags +5 mesh6 +1 # number of types +# Types +3 obj + +# --------- Object 0 ---------- + +0 0 1 +4 Mesh # class +4 # version +3 # sdim +12 # number of mesh vertices +0 # lowest mesh vertex index + +# Mesh vertex coordinates +0 0 0 +0 0 1 +0 1 1 +1 0 1 +0 1 0 +1 0 0 +1 1 1 +2 0 1 +1 1 0 +2 0 0 +2 1 1 +2 1 0 + +2 # number of element types + +# Type #0 + +3 tet # type name + + +4 # number of vertices per element +5 # number of elements +# Elements +2 4 1 6 +4 0 1 5 +1 6 4 5 +1 3 6 5 +6 8 4 5 + +5 # number of geometric entity indices +# Geometric entity indices +1 +2 +3 +4 +5 + +# Type #1 + +5 prism # type name + + +6 # number of vertices per element +2 # number of elements +# Elements +5 3 6 9 7 10 +6 8 5 10 11 9 + +2 # number of geometric entity indices +# Geometric entity indices +6 +7 \ No newline at end of file diff --git a/tests/grid/grids/comsol/mesh_example_without_domain_geom_info.mphtxt b/tests/grid/grids/comsol/mesh_example_without_domain_geom_info.mphtxt new file mode 100644 index 0000000000..03113d5156 --- /dev/null +++ b/tests/grid/grids/comsol/mesh_example_without_domain_geom_info.mphtxt @@ -0,0 +1,64 @@ +# Created by COMSOL Multiphysics. + +# Major & minor version +0 1 +1 # number of tags +# Tags +5 mesh1 +1 # number of types +# Types +3 obj + +# --------- Object 0 ---------- + +0 0 1 +4 Mesh # class +4 # version +3 # sdim +12 # number of mesh vertices +0 # lowest mesh vertex index + +# Mesh vertex coordinates +0 0 0 +0 0 1 +0 1 1 +1 0 1 +0 1 0 +1 0 0 +1 1 1 +2 0 1 +1 1 0 +2 0 0 +2 1 1 +2 1 0 + +2 # number of element types + +# Type #0 + +3 tet # type name + + +4 # number of vertices per element +5 # number of elements +# Elements +0 5 4 1 +2 4 6 1 +5 4 1 6 +3 5 1 6 +8 5 6 4 + +0 # number of geometric entity indices + +# Type #1 + +5 prism # type name + + +6 # number of vertices per element +2 # number of elements +# Elements +3 5 6 7 9 10 +8 6 5 11 10 9 + +0 # number of geometric entity indices