Skip to content
Snippets Groups Projects
Select Git revision
  • 8c07c48a4c22ebee5d87ee45879ebfb1aa47a4c0
  • master default protected
  • bl
  • pluginMeshQuality
  • fixBugsAmaury
  • hierarchical-basis
  • alphashapes
  • relaying
  • new_export_boris
  • oras_vs_osm
  • reassign_partitions
  • distributed_fwi
  • rename-classes
  • fix/fortran-api-example-t4
  • robust_partitions
  • reducing_files
  • fix_overlaps
  • 3115-issue-fix
  • 3023-Fillet2D-Update
  • convert_fdivs
  • tmp_jcjc24
  • gmsh_4_14_0
  • gmsh_4_13_1
  • gmsh_4_13_0
  • gmsh_4_12_2
  • gmsh_4_12_1
  • gmsh_4_12_0
  • gmsh_4_11_1
  • gmsh_4_11_0
  • gmsh_4_10_5
  • gmsh_4_10_4
  • gmsh_4_10_3
  • gmsh_4_10_2
  • gmsh_4_10_1
  • gmsh_4_10_0
  • gmsh_4_9_5
  • gmsh_4_9_4
  • gmsh_4_9_3
  • gmsh_4_9_2
  • gmsh_4_9_1
  • gmsh_4_9_0
41 results

meshGFaceBDS.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