Commit c5b71447 by Christophe Geuzaine

check for axi

parent 937c5a1e
......@@ -123,6 +123,10 @@ DefineConstant[
Flag_Axi = {0, Choices{0,1}, Visible (modelDim == 2),
Name "Model/05Axisymmetric model"}
];
If(Flag_Axi && (GetNumber["General.MinX"] < -1e-6 ||
Fabs[GetNumber["General.MaxZ"]] > 1e-6))
Error["The revolution axis for axisymmetric models should be X=Z=0"];
EndIf
If(export)
If(Flag_Axi)
Printf(Sprintf("Flag_Axi = 1;")) >> Str[exportFile];
......
......@@ -111,6 +111,10 @@ DefineConstant[
Flag_Axi = {0, Choices{0,1}, Visible (modelDim == 2),
Name "Model/02Axisymmetric model"}
];
If(Flag_Axi && (GetNumber["General.MinX"] < -1e-6 ||
Fabs[GetNumber["General.MaxZ"]] > 1e-6))
Error["The revolution axis for axisymmetric models should be X=Z=0"];
EndIf
If(export)
If(NbrRegions[Vol_Inf_Ele])
Printf(Sprintf("Val_Rint = %g;", Val_Rint)) >> Str[exportFile];
......
......@@ -115,6 +115,10 @@ DefineConstant[
Flag_Axi = {0, Choices{0,1}, Visible (modelDim == 2),
Name "Model/02Axisymmetric model"}
];
If(Flag_Axi && (GetNumber["General.MinX"] < -1e-6 ||
Fabs[GetNumber["General.MaxZ"]] > 1e-6))
Error["The revolution axis for axisymmetric models should be X=Z=0"];
EndIf
If(export)
If(NbrRegions[Vol_Inf_Mag])
Printf(Sprintf("Val_Rint = %g;", Val_Rint)) >> Str[exportFile];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment