Skip to content
Snippets Groups Projects
Commit e08ebfc6 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

use ValueOnly for OnPoint PostOperations when sending the value to the GUI with SendToServer

parent 9904bab4
No related branches found
No related tags found
No related merge requests found
Pipeline #11923 passed
...@@ -41,8 +41,7 @@ Poisson = DefineNumber[ 0.3, Name "Material/Poisson coefficient []"]; ...@@ -41,8 +41,7 @@ Poisson = DefineNumber[ 0.3, Name "Material/Poisson coefficient []"];
AppliedForce = DefineNumber[ 100, Name "Material/Applied force [N]"]; AppliedForce = DefineNumber[ 100, Name "Material/Applied force [N]"];
// Approximation of the maximum deflection by an analytical model: // Approximation of the maximum deflection by an analytical model:
// Deflection = PL^3/(3EI) with I = Width^3*Thickness/12 Deflection = DefineNumber[-4*AppliedForce*((LLength-0.018)/Width)^3/(Young*Thickness)*1e3,
Deflection = DefineNumber[4*AppliedForce*((LLength-0.018)/Width)^3/(Young*Thickness)*1e3,
Name "Solution/Deflection (analytical) [mm]", ReadOnly 1]; Name "Solution/Deflection (analytical) [mm]", ReadOnly 1];
Group { Group {
...@@ -346,7 +345,7 @@ PostOperation { ...@@ -346,7 +345,7 @@ PostOperation {
//Print[ sig_yy, OnElementsOf Wrench, File "sigyy.pos" ]; //Print[ sig_yy, OnElementsOf Wrench, File "sigyy.pos" ];
//Print[ sig_xy, OnElementsOf Wrench, File "sigxy.pos" ]; //Print[ sig_xy, OnElementsOf Wrench, File "sigxy.pos" ];
Print[ uy, OnPoint{probe_x, probe_y, 0}, Print[ uy, OnPoint{probe_x, probe_y, 0},
File > "deflection.pos", Format TimeTable, File > "deflection.pos", Format ValueOnly,
SendToServer "Solution/Deflection (computed) [mm]", Color "AliceBlue" ]; SendToServer "Solution/Deflection (computed) [mm]", Color "AliceBlue" ];
} }
} }
......
// Parameters shared by Gmsh and GetDP // Parameters shared by Gmsh and GetDP
rInt = 200.e-3; rInt = 200.e-3;
rExt = 250.e-3; rExt = 250.e-3;
...@@ -415,11 +415,11 @@ PostOperation{ // for the Airfoil model ...@@ -415,11 +415,11 @@ PostOperation{ // for the Airfoil model
// P_edge = {1.0001,0,0} // P_edge = {1.0001,0,0}
Print[phi, OnPoint {1.0001,0,0}, File > "KJiter.txt", Color "Ivory", Print[phi, OnPoint {1.0001,0,0}, File > "KJiter.txt", Color "Ivory",
StoreInVariable $phiTrailing, StoreInVariable $phiTrailing,
Format Table, SendToServer "Output/PhiTrailing"]; Format ValueOnly, SendToServer "Output/PhiTrailing"];
Print[Angle, OnPoint{1.0001,0,0}, File > "KJiter.txt", Color "Ivory", Print[Angle, OnPoint{1.0001,0,0}, File > "KJiter.txt", Color "Ivory",
StoreInVariable $argV, StoreInVariable $argV,
Format Table, SendToServer "Output/argVTrailing"]; Format ValueOnly, SendToServer "Output/argVTrailing"];
} }
} }
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment