Skip to content
Snippets Groups Projects
Select Git revision
  • 51797a34595b4b1babbb150a8a7bf4893832b5e8
  • master default protected
  • dev_mm_pf
  • cyrielle
  • vinayak
  • ujwal_21_08_2024
  • dev_mm_torchSCRU
  • debug_mm_pf
  • newStructureNonLocal
  • Mohamed_stochasticDMN
  • dev_mm_bench
  • stochdmn
  • revert-351ff7aa
  • ujwal_29April2024
  • dev_mm_ann
  • mohamed_vevp
  • ujwal_debug
  • ujwal_2ndApril2024
  • ujwal_October_2023
  • gabriel
  • SFEM
  • v4.0
  • v3.2.3_multiplePhase
  • v3.5
  • v3.3.2
  • v3.4
  • v3.3
  • ver3.2
  • verJulienWork
  • ver3.1
  • ver2
  • ver1.1.2
  • ver1.1.1
  • ver1.1
34 results

mlawNonLocalPorousCoupled.cpp

Blame
  • polynomialBasis.h 1.35 KiB
    // Gmsh - Copyright (C) 1997-2019 C. Geuzaine, J.-F. Remacle
    //
    // See the LICENSE.txt file for license information. Please report all
    // issues on https://gitlab.onelab.info/gmsh/gmsh/issues.
    
    #ifndef POLYNOMIAL_BASIS_H
    #define POLYNOMIAL_BASIS_H
    
    #include <math.h>
    #include <map>
    #include <vector>
    #include "fullMatrix.h"
    #include "nodalBasis.h"
    #include <iostream>
    
    class polynomialBasis : public nodalBasis {
    public:
      // for now the only implemented polynomial basis are nodal poly basis, we use
      // the type of the corresponding gmsh element as type
      fullMatrix<double> monomials;
      fullMatrix<double> coefficients;
    
      polynomialBasis(){};
      polynomialBasis(int tag);
      ~polynomialBasis();
    
      virtual inline int getNumShapeFunctions() const
      {
        return coefficients.size1();
      }
    
      virtual void f(double u, double v, double w, double *sf) const;
      virtual void f(const fullMatrix<double> &coord, fullMatrix<double> &sf) const;
      virtual void df(const fullMatrix<double> &coord,
                      fullMatrix<double> &dfm) const;
      virtual void df(double u, double v, double w, double grads[][3]) const;
      virtual void ddf(double u, double v, double w, double hess[][3][3]) const;
      virtual void dddf(double u, double v, double w,
                        double third[][3][3][3]) const;
    
      void evaluateMonomials(double u, double v, double w, double p[]) const;
    };
    
    #endif