Skip to content
Snippets Groups Projects
Select Git revision
  • 1f8bb29c47d80aed8b49c634c09dd69d20847090
  • master default protected
  • alphashapes
  • quadMeshingTools
  • cygwin_conv_path
  • macos_arm64
  • add-transfiniteautomatic-to-geo
  • patch_releases_4_10
  • HierarchicalHDiv
  • isuruf-master-patch-63355
  • hyperbolic
  • hexdom
  • hxt_update
  • jf
  • 1618-pythonocc-and-gmsh-api-integration
  • octreeSizeField
  • hexbl
  • alignIrregularVertices
  • getEdges
  • patch_releases_4_8
  • isuruf-master-patch-51992
  • 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
  • gmsh_4_8_4
  • gmsh_4_8_3
  • gmsh_4_8_2
  • gmsh_4_8_1
  • gmsh_4_8_0
  • gmsh_4_7_1
  • gmsh_4_7_0
41 results

meshGRegionLocalMeshMod.cpp

Blame
  • Forked from gmsh / gmsh
    Source project has a limited visibility.
    wrench2D_common.pro 972 B
    // Some useful conversion coefficients
    mm = 1.e-3;     // millimeters to meters
    cm = 1.e-2;     // centimeters to meters
    in = 0.0254;    // inches to meters
    deg = Pi/180.;  // degrees to radians
    
    Refine = 
      mm*DefineNumber[ 2, Name "Geometry/2Main characteristic length"];
    Recomb = 
      DefineNumber[ 0, Name "Geometry/1Recombine", Choices{0,1}];
    Thickness = 
      mm*DefineNumber[ 10, Name "Geometry/4Thickness (mm)"];
    Width = 
      mm*DefineNumber[ 0.625*in/mm, Name "Geometry/5Arm Width (mm)"];
    LLength = 
      cm*DefineNumber[ 6.0*in/cm, Name "Geometry/6Arm Length (cm)"];
    
    // Definition of the coordinates of the arm end
    // at which the maximal deflection will be evaluated.
    Inclination = 14*deg; // Arm angle with x-axis
    eps = 1e-6;
    probe_x = (LLength-eps)*Cos[Inclination];
    probe_y =-(LLength-eps)*Sin[Inclination];
    
    // a useful Print command to debug a model or communicate with the user
    Printf("Maximal deflection calculated at point (%f,%f)", probe_x, probe_y);