Skip to content
Snippets Groups Projects
  1. Jan 06, 2025
    • Sander, Oliver's avatar
      Let LocalDensity depend on the integration domain · ea7c073a
      Sander, Oliver authored
      Rather than just on the type for points in the domain.
      The point type is not enough: For example, if the density involves
      a coefficient function given as a GridView function, then the
      density has to be able to bind the local coefficient function
      to the correct element, for which it has to know the element type.
      
      Integration domains can be elements (i.e., Codim<0>::Entity)
      or Intersections.
      
      The actual bind method will follow in a separate commit.
      ea7c073a
  2. Oct 07, 2024
  3. 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