Skip to content
Snippets Groups Projects
  1. Oct 07, 2024
  2. Jul 11, 2024
    • Sander, Oliver's avatar
    • Sander, Oliver's avatar
      Allow LocalDensity objects to hand out adouble-versions of themselves · fb50ca87
      Sander, Oliver authored
      Currently the user code that plugs together the assembler for a
      particular problems has to know that ADOL-C is used internally
      to compute certain derivatives.  In shows because certain objects
      need to be instantiated with adouble as the number type.  One such
      example is all objects derived from LocalDensity.
      
      However, if this is to be avoided, then assemblers need to have
      a way to turn a (e.g.) 'double' version of a density into an
      'adouble' one.  This commit provides this way, by adding a
      'makeActiveDensity' method.
      fb50ca87
    • Lisa Julia Nebel's avatar
      Add LocalIntegralStiffness class with a test · ab09c587
      Lisa Julia Nebel authored and Sander, Oliver's avatar Sander, Oliver committed
      The LocalIntegralStiffness assembles a tangent matrix by
      suitably combining derivatives of the energy density with
      derivatives of the geometric FE interpolation.  See the
      detailed description in dune-gfe-manual.pdf.
      
      This patch also includes a new test in localintegralstiffnesstest.cc.
      It checks if the assembled matrix is the same as the one computed
      by LocalGeodesicFEADOLCStiffness.
      
      For a 3d Cosserat material I get a speedup of about 3x.
      ab09c587
Loading