Skip to content
Snippets Groups Projects
Select Git revision
  • c92b3a91d2a9a3910a5d69140a48cf9f1b81a842
  • master default
  • cgnsUnstructured
  • partitioning
  • poppler
  • HighOrderBLCurving
  • gmsh_3_0_4
  • gmsh_3_0_3
  • gmsh_3_0_2
  • gmsh_3_0_1
  • gmsh_3_0_0
  • gmsh_2_16_0
  • gmsh_2_15_0
  • gmsh_2_14_1
  • gmsh_2_14_0
  • gmsh_2_13_2
  • gmsh_2_13_1
  • gmsh_2_12_0
  • gmsh_2_11_0
  • gmsh_2_10_1
  • gmsh_2_10_0
  • gmsh_2_9_3
  • gmsh_2_9_2
  • gmsh_2_9_1
  • gmsh_2_9_0
  • gmsh_2_8_6
26 results

MinMax.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);