• Benoît LÉ's avatar
    [xInterfaceMatlib] Add xInterfaceMatlib · b9a90544
    Benoît LÉ authored
    Based on work initiated by G. Legrain.
    
    Interface between eXlibris and Matlib material library ("lite" version can be  downloaded here:
    https://git.gem.ec-nantes.fr/MatLib/Lite).
    
    To compile this interface:
    
    1) Download and compile Matlib. It must be compiled using the add_definitions( -DMATLIB_USE_MATLIB_NAMESPACE)
    
    2) Install Matlib in a /my/path/to/matlib/ such that libraries are installed in /my/path/to/matlib/lib and
    include in /my/path/to/matlib/include. Path to sources /my/path/to/matlib/src will also be necessary
    
    3) Add
    
    if(USE_MATLIB)
        set(MATLIB_PATH "/my/path/to/matlib/src will also be necessary"  CACHE INTERNAL "Matlib install path")#
    endif(USE_MATLIB)
    
    to the LocalConfig.cmake file. The line "is_not_installed ( USE_MATLIB )" (which is by default activated in the
     template LocalConfig.cmake of GeMUtil) may eventually need to be commented
    
    4) Set BUILD_XINTERFACE_MATLIB and USE_MATLIB to "ON" in the main CMakeLists.txt
    
    5) (Try to) compile !
    
    To use it in In your code:
    
    1) You need to declare a
    
    xinterface::aomd::xAttachedDataManagerAOMD<std::vector<xinterface::matlibinterface::xMaterialTwoStates>>
    
    which will store some xMaterialTwoStates at each Gauss points
    
    2) Each xMaterialTwoStatesInterface (defined in) contains two matlib::MaterialState, corresponding to the previous
    and current material state
    
    3) Still in xMaterialTwoStatesInterface.h, you will find classes to manipulate theses states. In particular, some
    important classes are:
      - xInitVectorMatLibTwoStatesToAttachedDataManagerAOMD: must be used with an ApplyCommandOnIntegration rule to
      initialize the states
      - xMatLibStandardMaterialStateUpdatorVectorTwoStates: to update the material states at each Gauss points
      - xMatLibLipschitzMaterialStateUpdator: same, but update only softening variables, in the framework of the Lipfield
       regularization (an appli illustrating the implementation of the Lipfield approach should come soon)
      - xEvalVectorMatLibStandardMaterialTangent: evaluator of the material tangent
    
    4) xEvalFromMatlib.h contains several evaluators to access the quantities stored at GaussPoints and use them in eXlibris.
    For now they can be used to access scalar or tensorial matlib gradients, fluxes and internal variables (maybe evaluators
    corresponding to vectorial quantities should be added ?)
    
    5) xInterfaceMatlibToExlibris.h contains classes which are used by the previously mentionned classes. Basically, provides
    sgome tools to read and/or write from/to matlib arrays
    
    6)  xMatlibHelpers.h some helper functions to parse a material file and create Matlib objects
    
    Note that for objects dealing with tensor 2 or 4 (example : xEvalVectorMatLibStandardMaterialTangent, evaluators in
    xEvalFromMatlib.h), some builder functions are provide to instanciate the correct template object, which depends on the
    problem dimension. In the case of the xEvalVectorMatLibStandardMaterialTangent, it can be used directly inside your main
    appli (but special care must be given to the problem dimension), otherwise a xFormBilinearMatLibStandardMaterialTangentFactory
    is provided in the interface to create the corresponding bilinear form (which is btw the only thing which is necessary in most
    cases).
    b9a90544
Name
Last commit
Last update
..
ExecCmakeLists Loading commit data...
LibCmakeLists Loading commit data...
attic Loading commit data...
FindACML.cmake Loading commit data...
FindANN.cmake Loading commit data...
FindASan.cmake Loading commit data...
FindAUTOPACK.cmake Loading commit data...
FindBLACS.cmake Loading commit data...
FindBLAS2.cmake Loading commit data...
FindCGAL.cmake Loading commit data...
FindEigen3.cmake Loading commit data...
FindGMP.cmake Loading commit data...
FindGMPXX.cmake Loading commit data...
FindGMSH.cmake Loading commit data...
FindGSL.cmake Loading commit data...
FindInitMPI.cmake Loading commit data...
FindKSPParallel.cmake Loading commit data...
FindLAPACK2.cmake Loading commit data...
FindLIBIGL.cmake Loading commit data...
FindLinearAlgebra.cmake Loading commit data...
FindMATLIB.cmake Loading commit data...
FindMETIS.cmake Loading commit data...
FindMETISV.cmake Loading commit data...
FindMKLPath.cmake Loading commit data...
FindMPFR.cmake Loading commit data...
FindMSan.cmake Loading commit data...
FindMUMPS.cmake Loading commit data...
FindMatlib.cmake Loading commit data...
FindNoHeaderLibrary.cmake Loading commit data...
FindPASTIX.cmake Loading commit data...
FindSCALAPACK.cmake Loading commit data...
FindSCOTCH.cmake Loading commit data...
FindSUPERLU.cmake Loading commit data...
FindSisl.cmake Loading commit data...
FindStandardLibrary.cmake Loading commit data...
FindTAUCS.cmake Loading commit data...
FindTR1.cmake Loading commit data...
FindTSan.cmake Loading commit data...
FindTotalview.cmake Loading commit data...
FindTrellis.cmake Loading commit data...
FindUBSan.cmake Loading commit data...
FindValgrind.cmake Loading commit data...
FindXtestCommon.cmake Loading commit data...
FindmiAOMD.cmake Loading commit data...
FindmiBase.cmake Loading commit data...
FindxAnalyticalSolution.cmake Loading commit data...
FindxCrack.cmake Loading commit data...
FindxDistMesh.cmake Loading commit data...
FindxDistanceNearest.cmake Loading commit data...
FindxDomainDecomp.cmake Loading commit data...
FindxDoubleCut.cmake Loading commit data...
FindxExport.cmake Loading commit data...
FindxExt.cmake Loading commit data...
FindxFEM.cmake Loading commit data...
FindxFastMarching.cmake Loading commit data...
FindxGeomTools.cmake Loading commit data...
FindxGraph.cmake Loading commit data...
FindxInterfaceAOMDGeneral.cmake Loading commit data...
FindxInterfaceBasicIterSolver.cmake Loading commit data...
FindxInterfaceLapack.cmake Loading commit data...
FindxInterfaceMatlib.cmake Loading commit data...
FindxInterfaceMumps.cmake Loading commit data...
FindxInterfaceParMetis.cmake Loading commit data...
FindxInterfacePastix.cmake Loading commit data...
FindxInterfaceSuperLu.cmake Loading commit data...
FindxInterfaceTaucs.cmake Loading commit data...
FindxInterfacexOctree.cmake Loading commit data...
FindxInterfacexTemplateRefineMesh.cmake Loading commit data...
FindxLegacySimpleCut.cmake Loading commit data...
FindxMapping.cmake Loading commit data...
FindxModule.cmake Loading commit data...
FindxOctree.cmake Loading commit data...
FindxPhysics.cmake Loading commit data...
FindxQuadrature.cmake Loading commit data...
FindxReader.cmake Loading commit data...
FindxScanElement.cmake Loading commit data...
FindxSolverBase.cmake Loading commit data...
FindxTLS.cmake Loading commit data...
FindxTemplateRefineMesh.cmake Loading commit data...
FindxTensor.cmake Loading commit data...
FindxTool.cmake Loading commit data...
HandleImportedTargetsInCMakeRequiredLibraries.cmake Loading commit data...
UseLATEX.cmake Loading commit data...
check_cxx_source_compiles.cmake Loading commit data...
common_functions.cmake Loading commit data...
do_link.sh Loading commit data...
test_ndiff.sh Loading commit data...