Skip to content
Snippets Groups Projects
Select Git revision
  • 19b2555a97c769af9bbb39fcef6314b1fbd2534b
  • master default protected
  • ujwal_21_08_2024
  • dev_mm_pf
  • cyrielle
  • vinayak
  • 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

dG3DMultiscaleIPVariable.cpp

Blame
  • 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);