1 (edited by yzhang 13-11-2017 00:52:10)

Topic: Question for test codes for Xfem in GitHub

Hi,

I'm working on introducing cracks in my analysis. There are some examples under erisve/OOFEM_Cases. But I didn't succeed in running most of them:

1. square9x9.in
I got:

Error: (/Users/Yige/Downloads/oofem/src/oofemlib/domain.C:751)
In Domain::instanciateYourself, number: 1:
Couldn't create boundary condition: userdefdirichletbc
_______________________________________________________
stack trace:
  2   liboofem.dylib                      0x000000010646c019 _ZN5oofem6Domain19instanciateYourselfERNS_10DataReaderE + 38489
  3   liboofem.dylib                      0x0000000106700667 _ZN5oofem10EngngModel18instanciateDomainsERNS_10DataReaderE + 471
  4   liboofem.dylib                      0x00000001066ffd92 _ZN5oofem10EngngModel19instanciateYourselfERNS_10DataReaderEPNS_11InputRecordEPKcS6_ + 4994
  5   liboofem.dylib                      0x00000001064ae025 _ZN5oofem18InstanciateProblemERNS_10DataReaderENS_11problemModeEiPNS_10EngngModelEb + 4661
  6   oofem                               0x00000001063cb93b main + 7883
  7   libdyld.dylib                       0x00007fff6a74e145 start + 1
  8   ???                                 0x0000000000000003 0x0 + 3
Total 1 error(s) and 0 warning(s) reported
oofem exit code 1

I did add the userdefbc.py under the same folder. Should I place it somewhere else?
I got the same error for the code --- fe2Localization/test.in when we need to add userdefbc.py.

2. crackPropHoopStress/test.in
I got:

Error: (/Users/Yige/Downloads/oofem/src/oofemlib/nrsolver.C:402)
In NRSolver::giveLinearSolver:
linear solver creation failed for lstype 3
_______________________________________________________
stack trace:
  2   liboofem.dylib                      0x000000010907492b _ZN5oofem8NRSolver16giveLinearSolverEv + 1131
  3   liboofem.dylib                      0x000000010906e697 _ZN5oofem8NRSolver14initializeFromEPNS_11InputRecordE + 1527
  4   liboofem.dylib                      0x00000001091656cd _ZN5oofem10EngngModel16updateAttributesEPNS_8MetaStepE + 141
  5   liboofem.dylib                      0x00000001095f311e _ZN5oofem16StaticStructural16updateAttributesEPNS_8MetaStepE + 3742
  6   liboofem.dylib                      0x0000000109165212 _ZN5oofem10EngngModel22initMetaStepAttributesEPNS_8MetaStepE + 50
  7   liboofem.dylib                      0x0000000109164bbe _ZN5oofem10EngngModel13solveYourselfEv + 302
  8   liboofem.dylib                      0x00000001095f3865 _ZN5oofem16StaticStructural13solveYourselfEv + 21
  9   oofem                               0x0000000108e2ed15 main + 8869
  10  libdyld.dylib                       0x00007fff6a74e145 start + 1
Total 1 error(s) and 0 warning(s) reported
oofem exit code 1
engr2-15-59-dhcp:4 OOFEM Yige$ 

I have the same error also for --- crackPropMaterialForce/test.in

3.fe2Localization/sve.in
I got:

Error: (/Users/Yige/Downloads/oofem/src/oofemlib/domain.C:683)
In Domain::instanciateYourself, number: 1:
Couldn't create material: concrete3viscreg
_______________________________________________________
stack trace:
  2   liboofem.dylib                      0x0000000105adb802 _ZN5oofem6Domain19instanciateYourselfERNS_10DataReaderE + 28226
  3   liboofem.dylib                      0x0000000105d72667 _ZN5oofem10EngngModel18instanciateDomainsERNS_10DataReaderE + 471
  4   liboofem.dylib                      0x0000000105d71d92 _ZN5oofem10EngngModel19instanciateYourselfERNS_10DataReaderEPNS_11InputRecordEPKcS6_ + 4994
  5   liboofem.dylib                      0x0000000105b20025 _ZN5oofem18InstanciateProblemERNS_10DataReaderENS_11problemModeEiPNS_10EngngModelEb + 4661
  6   oofem                               0x0000000105a3b93b main + 7883
  7   libdyld.dylib                       0x00007fff6a74e145 start + 1
Total 1 error(s) and 0 warning(s) reported
oofem exit code 1
engr2-15-59-dhcp:4 OOFEM Yige$ 

4.stressInTipEl/stressInTipEl.in
I got:

Error: (/Users/Yige/Downloads/oofem/src/oofemlib/floatarray.C:345)
In beDifferenceOf:
size mismatch (3 : 2)
_______________________________________________________
stack trace:
  2   liboofem.dylib                      0x000000010e7c9511 _ZN5oofem10FloatArray14beDifferenceOfERKS0_S2_ + 529
  3   liboofem.dylib                      0x000000010e5b189b _ZNK5oofem8Triangle17pointIsInTriangleERKNS_10FloatArrayE + 2795
  4   liboofem.dylib                      0x000000010ef2ec10 _ZN5oofem30XfemStructuralElementInterface26computeIPAverageInTriangleERNS_10FloatArrayEPNS_15IntegrationRuleEPNS_7ElementENS_17InternalStateTypeEPNS_8TimeStepERKNS_8TriangleE + 352
  5   liboofem.dylib                      0x000000010ef2d93f _ZN5oofem30XfemStructuralElementInterface39giveSubtriangulationCompositeExportDataERNSt3__16vectorINS_8VTKPieceENS1_9allocatorIS3_EEEERNS_8IntArrayES9_S8_PNS_8TimeStepE + 7535
  6   liboofem.dylib                      0x000000010ebee77c _ZN5oofem17PlaneStress2dXfem23giveCompositeExportDataERNSt3__16vectorINS_8VTKPieceENS1_9allocatorIS3_EEEERNS_8IntArrayES9_S8_PNS_8TimeStepE + 7740
  7   liboofem.dylib                      0x000000010ebee837 _ZThn528_N5oofem17PlaneStress2dXfem23giveCompositeExportDataERNSt3__16vectorINS_8VTKPieceENS1_9allocatorIS3_EEEERNS_8IntArrayES9_S8_PNS_8TimeStepE + 71
  8   liboofem.dylib                      0x000000010e780854 _ZN5oofem18VTKXMLExportModule22exportCompositeElementERNSt3__16vectorINS_8VTKPieceENS1_9allocatorIS3_EEEEPNS_7ElementEPNS_8TimeStepE + 196
  9   liboofem.dylib                      0x000000010e77cb0b _ZN5oofem18VTKXMLExportModule8doOutputEPNS_8TimeStepEb + 971
  10  liboofem.dylib                      0x000000010e7637b1 _ZN5oofem19ExportModuleManager8doOutputEPNS_8TimeStepEb + 625
Total 1 error(s) and 0 warning(s) reported
oofem exit code 1
engr2-15-59-dhcp:4 OOFEM Yige$ 

Thank you very much!

Re: Question for test codes for Xfem in GitHub

Hi,

Regarding 1. square9x9.in, you need to enable Python, i.e. set USE_PYTHON to ON when compiling.
(The user defined Dirichlet BCs rely on Python.)

When I enable Python, it works with the latest version from Mickes repo: https://github.com/Micket/oofem.git

Kind regards,
Erik

Re: Question for test codes for Xfem in GitHub

Hi,

I have made some updates, so now all cases should work with my OOFEM verion: https://github.com/erisve/oofem.git

Kind regards,
Erik