Skip to content
Snippets Groups Projects
Select Git revision
  • 85790276da7938d6359f0e78ff4e37416a378ba6
  • master default protected
  • dof-renumbering
  • dof-renumbering-simpler
  • func-supercond
  • test-dof-hash
  • gdemesy-master-patch-30528
  • eval-space-time
  • oscillating_multiharm
  • MH_movement
  • axisqu
  • write_vtu_and_ensight_formats
  • movingband
  • CP_1972_add_vtu_file_writing
  • mortar
  • fast_freq_sweep_Resolution
  • applyresolvent_again
  • marteaua-master-patch-54323
  • patch-1
  • binde-master-patch-08072
  • binde-master-patch-52461
  • getdp_3_5_0
  • getdp_3_4_0
  • getdp_3_3_0
  • getdp_3_2_0
  • getdp_3_1_0
  • getdp_3_0_4
  • getdp_3_0_3
  • getdp_3_0_2
  • getdp_3_0_1
  • getdp_3_0_0
  • onelab_mobile_2.1.0
  • getdp_2_11_3 protected
  • getdp_2_11_2 protected
  • getdp_2_11_1 protected
  • getdp_2_11_0 protected
  • getdp_2_10_0 protected
  • getdp_2_9_2 protected
  • getdp_2_9_1 protected
  • getdp_2_9_0 protected
  • getdp_2_8_0 protected
41 results

Lib_JacInt.pro

Blame
  • Lib_JacInt.pro 2.91 KiB
    
    //+++
    DefineConstant[ iP = 1 ];
    
    DefineConstant[ DEF_JACINT~{iP} = 0 ]; // 0 at 1st include, then fixed to 1...
    
    ////////////////////
    // DEF_JACINT~{iP}
    If (DEF_JACINT~{iP} == 0)
    
    DEF_JACINT~{iP} = 1; // ... 1: for not being included anymore
    
    DefineConstant[ type_Dimension~{iP} = 2, flag_Symmetry_Axi~{iP} = 0 ];
    
    DefineConstant[ CoefGeo~{iP} = (flag_Symmetry_Axi~{iP})? 2.*Pi : 1 ];
    
    Function{ DefineFunction[ CoefJac~{iP} ]; }
    
    Group {
      DefineGroup[ DomainInf~{iP} ];
      DefineGroup[ Domain_Dim_2~{iP} ];
      DefineConstant[
        SphShell_Rint~{iP}, SphShell_Rext~{iP}, // inner and outer radius of SphShell
        SphShell_Xc~{iP} = 0., SphShell_Yc~{iP} = 0., SphShell_Zc~{iP} = 0. // Center coord. of SphShell
      ];
    }
    
    If (!(flag_Symmetry_Axi~{iP} && type_Dimension~{iP}<=2))
    Jacobian {
      {
        Name Vol~{iP};
        Case {
          { Region DomainInf~{iP};
            Jacobian VolSphShell {
              SphShell_Rint~{iP}, SphShell_Rext~{iP},
              SphShell_Xc~{iP}, SphShell_Yc~{iP}, SphShell_Zc~{iP}
            };
          }
          { Region Domain_Dim_2~{iP}; Jacobian Sur; Coefficient CoefJac~{iP}[]; }
          { Region All; Jacobian Vol; }
        }
      }
      {
        Name Sur~{iP};
        Case {
          { Region Domain_Dim_2~{iP}; Jacobian Lin; }
          { Region All; Jacobian Sur; }
        }
      }
    }
    
    Else
    Jacobian {
      {
        Name Vol~{iP};
        Case {
          { Region DomainInf~{iP};
            Jacobian VolAxiSquSphShell {
              SphShell_Rint~{iP}, SphShell_Rext~{iP},
              SphShell_Xc~{iP}, SphShell_Yc~{iP}, SphShell_Zc~{iP}
            };
          }
          { Region All; Jacobian VolAxiSqu; }
        }
      } 
      {
        Name Sur~{iP};
        Case {
          { Region All; Jacobian SurAxi; }
        }
      }
    }
    EndIf
    
    
    
    DefineConstant[
      FE_Degree~{iP} = 1 // 1: if not yet defined
    ];
    
    If (FE_Degree~{iP} == 1)
    Integration {
      { Name Gauss_v~{iP};
        Case {
          {Type Gauss;
            Case {
              { GeoElement Point      ; NumberOfPoints  1; }
              { GeoElement Line       ; NumberOfPoints  3; }
              { GeoElement Triangle   ; NumberOfPoints  3; }
              { GeoElement Quadrangle ; NumberOfPoints  4; }
              { GeoElement Tetrahedron; NumberOfPoints  4; }
              { GeoElement Hexahedron ; NumberOfPoints  6; }
              { GeoElement Prism      ; NumberOfPoints  9; }
              { GeoElement Pyramid    ; NumberOfPoints  8; }
            }
          }
        }
      }
    }
    
    
    ElseIf (FE_Degree~{iP} == 2)
    Integration {
      { Name Gauss_v~{iP};
        Case {
          {Type Gauss;
            Case {
              { GeoElement Point      ; NumberOfPoints  1; }
              { GeoElement Line       ; NumberOfPoints  5; }
              { GeoElement Triangle   ; NumberOfPoints  7; }
              { GeoElement Quadrangle ; NumberOfPoints  7; }
              { GeoElement Tetrahedron; NumberOfPoints 15; }
              { GeoElement Hexahedron ; NumberOfPoints 14; }
              { GeoElement Prism      ; NumberOfPoints 21; }
              { GeoElement Pyramid    ; NumberOfPoints  8; }
            }
          }
        }
      }
    }
    EndIf
    
    EndIf
    // DEF_JACINT~{iP}
    ////////////////////