[Gmsh] Surface In Volume does not work GMSH for Linux

bill bill.slade at skynet.be
Thu Nov 3 14:26:45 CET 2016


Hi,
But it does, strangely enough, for windows!  What is wrong?  Is this a
bug or do I have a setting wrong?

Geometry file and settings dump is attached.

Cheers,
Bill Slade

-------------- next part --------------
General.AxesFormatX = "%.3g";
General.AxesFormatY = "%.3g";
General.AxesFormatZ = "%.3g";
General.AxesLabelX = "";
General.AxesLabelY = "";
General.AxesLabelZ = "";
General.BackgroundImageFileName = "";
General.DefaultFileName = "untitled.geo";
General.Display = "";
General.ErrorFileName = ".gmsh-errors";
General.FileName = "test1.geo";
General.FltkTheme = "";
General.GraphicsFont = "Helvetica";
General.GraphicsFontEngine = "Native";
General.GraphicsFontTitle = "Helvetica";
General.OptionsFileName = ".gmsh-options";
General.RecentFile0 = "test1.geo";
General.RecentFile1 = "/home/bill/Downloads/tube3.geo";
General.RecentFile2 = "untitled.geo";
General.RecentFile3 = "untitled.geo";
General.RecentFile4 = "untitled.geo";
General.TextEditor = "sensible-editor '%s'";
General.TmpFileName = ".gmsh-tmp";
General.WatchFilePattern = "";
General.AlphaBlending = 1;
General.Antialiasing = 0;
General.ArrowHeadRadius = 0.12;
General.ArrowStemLength = 0.5600000000000001;
General.ArrowStemRadius = 0.02;
General.Axes = 0;
General.AxesMikado = 0;
General.AxesAutoPosition = 1;
General.AxesForceValue = 0;
General.AxesMaxX = 1;
General.AxesMaxY = 1;
General.AxesMaxZ = 1;
General.AxesMinX = 0;
General.AxesMinY = 0;
General.AxesMinZ = 0;
General.AxesTicsX = 5;
General.AxesTicsY = 5;
General.AxesTicsZ = 5;
General.AxesValueMaxX = 1;
General.AxesValueMaxY = 1;
General.AxesValueMaxZ = 1;
General.AxesValueMinX = 0;
General.AxesValueMinY = 0;
General.AxesValueMinZ = 0;
General.BackgroundGradient = 1;
General.BackgroundImagePositionX = 100000;
General.BackgroundImagePositionY = 100000;
General.Camera = 0;
General.CameraAperture = 40;
General.CameraEyeSeparationRatio = 1.5;
General.CameraFocalLengthRatio = 1;
General.Clip0A = 1;
General.Clip0B = 0;
General.Clip0C = 0;
General.Clip0D = 0;
General.Clip1A = 0;
General.Clip1B = 1;
General.Clip1C = 0;
General.Clip1D = 0;
General.Clip2A = 0;
General.Clip2B = 0;
General.Clip2C = 1;
General.Clip2D = 0;
General.Clip3A = -1;
General.Clip3B = 0;
General.Clip3C = 0;
General.Clip3D = 1;
General.Clip4A = 0;
General.Clip4B = -1;
General.Clip4C = 0;
General.Clip4D = 1;
General.Clip5A = 0;
General.Clip5B = 0;
General.Clip5C = -1;
General.Clip5D = 1;
General.ClipFactor = 5;
General.ClipOnlyDrawIntersectingVolume = 0;
General.ClipOnlyVolume = 0;
General.ClipPositionX = 650;
General.ClipPositionY = 150;
General.ClipWholeElements = 0;
General.ColorScheme = 1;
General.ConfirmOverwrite = 1;
General.ContextPositionX = 650;
General.ContextPositionY = 150;
General.DetachedMenu = 0;
General.DisplayBorderFactor = 0.2;
General.DoubleBuffer = 1;
General.DrawBoundingBoxes = 0;
General.ExpertMode = 0;
General.ExtraPositionX = 650;
General.ExtraPositionY = 350;
General.ExtraHeight = 100;
General.ExtraWidth = 100;
General.FastRedraw = 0;
General.FieldPositionX = 650;
General.FieldPositionY = 550;
General.FieldHeight = 368;
General.FieldWidth = 481;
General.FileChooserPositionX = 200;
General.FileChooserPositionY = 200;
General.FontSize = -1;
General.GraphicsFontSize = 15;
General.GraphicsFontSizeTitle = 18;
General.GraphicsHeight = 691;
General.GraphicsPositionX = 732;
General.GraphicsPositionY = 288;
General.GraphicsWidth = 1052;
General.HighOrderToolsPositionX = 650;
General.HighOrderToolsPositionY = 150;
General.InitialModule = 0;
General.Light0 = 1;
General.Light0X = 0.65;
General.Light0Y = 0.65;
General.Light0Z = 1;
General.Light0W = 0;
General.Light1 = 0;
General.Light1X = 0.5;
General.Light1Y = 0.3;
General.Light1Z = 1;
General.Light1W = 0;
General.Light2 = 0;
General.Light2X = 0.5;
General.Light2Y = 0.3;
General.Light2Z = 1;
General.Light2W = 0;
General.Light3 = 0;
General.Light3X = 0.5;
General.Light3Y = 0.3;
General.Light3Z = 1;
General.Light3W = 0;
General.Light4 = 0;
General.Light4X = 0.5;
General.Light4Y = 0.3;
General.Light4Z = 1;
General.Light4W = 0;
General.Light5 = 0;
General.Light5X = 0.5;
General.Light5Y = 0.3;
General.Light5Z = 1;
General.Light5W = 0;
General.LineWidth = 1;
General.ManipulatorPositionX = 650;
General.ManipulatorPositionY = 150;
General.MaxX = 1;
General.MaxY = 1;
General.MaxZ = 1;
General.MenuWidth = 200;
General.MenuHeight = 200;
General.MenuPositionX = 400;
General.MenuPositionY = 400;
General.MessageHeight = 300;
General.MinX = 0;
General.MinY = 0;
General.MinZ = 0;
General.MouseHoverMeshes = 0;
General.MouseSelection = 1;
General.NonModalWindows = 1;
General.NoPopup = 0;
General.OptionsPositionX = 650;
General.OptionsPositionY = 150;
General.Orthographic = 1;
General.PluginPositionX = 650;
General.PluginPositionY = 550;
General.PluginHeight = 368;
General.PluginWidth = 481;
General.PointSize = 3;
General.PolygonOffsetAlwaysOn = 0;
General.PolygonOffsetFactor = 1;
General.PolygonOffsetUnits = 1;
General.ProgressMeterStep = 20;
General.QuadricSubdivisions = 6;
General.RotationX = 278.4694123359453;
General.RotationY = 46.64352607932093;
General.RotationZ = 9.587850810405943;
General.RotationCenterGravity = 1;
General.RotationCenterX = 0;
General.RotationCenterY = 0;
General.RotationCenterZ = 0;
General.SaveOptions = 0;
General.SaveSession = 1;
General.ScaleX = 1;
General.ScaleY = 1;
General.ScaleZ = 1;
General.Shininess = 0.4;
General.ShininessExponent = 40;
General.SmallAxes = 1;
General.SmallAxesPositionX = -60;
General.SmallAxesPositionY = -40;
General.SmallAxesSize = 30;
General.StatisticsPositionX = 1151;
General.StatisticsPositionY = 323;
General.Stereo = 0;
General.SystemMenuBar = 1;
General.Terminal = 0;
General.Tooltips = 1;
General.Trackball = 1;
General.TrackballHyperbolicSheet = 1;
General.TrackballQuaternion0 = 0.5724559342898583;
General.TrackballQuaternion1 = -0.3489086697137513;
General.TrackballQuaternion2 = 0.1994744102586586;
General.TrackballQuaternion3 = 0.7146795807541073;
General.TranslationX = 0;
General.TranslationY = 0;
General.TranslationZ = 0;
General.VectorType = 4;
General.Verbosity = 5;
General.VisibilityPositionX = 1307;
General.VisibilityPositionY = 320;
General.ZoomFactor = 4;
General.Color.Background = {255,255,255};
General.Color.BackgroundGradient = {208,215,255};
General.Color.Foreground = {85,85,85};
General.Color.Text = {0,0,0};
General.Color.Axes = {0,0,0};
General.Color.SmallAxes = {0,0,0};
General.Color.AmbientLight = {25,25,25};
General.Color.DiffuseLight = {255,255,255};
General.Color.SpecularLight = {255,255,255};
Geometry.AutoCoherence = 1;
Geometry.Clip = 0;
Geometry.CopyMeshingMethod = 0;
Geometry.ExactExtrusion = 1;
Geometry.ExtrudeReturnLateralEntities = 1;
Geometry.ExtrudeSplinePoints = 5;
Geometry.HideCompounds = 1;
Geometry.HighlightOrphans = 0;
Geometry.LabelType = 1;
Geometry.Light = 1;
Geometry.LightTwoSide = 1;
Geometry.Lines = 1;
Geometry.LineNumbers = 0;
Geometry.LineSelectWidth = 2;
Geometry.LineType = 0;
Geometry.LineWidth = 2;
Geometry.MatchGeomAndMesh = 0;
Geometry.Normals = 0;
Geometry.NumSubEdges = 20;
Geometry.OCCFixDegenerated = 0;
Geometry.OCCFixSmallEdges = 0;
Geometry.OCCFixSmallFaces = 0;
Geometry.OCCSewFaces = 0;
Geometry.OCCConnectFaces = 0;
Geometry.OffsetX = 0;
Geometry.OffsetY = 0;
Geometry.OffsetZ = 0;
Geometry.OldCircle = 0;
Geometry.OldRuledSurface = 0;
Geometry.OldNewReg = 1;
Geometry.Points = 1;
Geometry.PointNumbers = 0;
Geometry.PointSelectSize = 5;
Geometry.PointSize = 4;
Geometry.PointType = 0;
Geometry.ScalingFactor = 1;
Geometry.OrientedPhysicals = 1;
Geometry.SnapX = 0.1;
Geometry.SnapY = 0.1;
Geometry.SnapZ = 0.1;
Geometry.Surfaces = 0;
Geometry.SurfaceNumbers = 0;
Geometry.SurfaceType = 2;
Geometry.Tangents = 0;
Geometry.Tolerance = 1e-06;
Geometry.Transform = 0;
Geometry.TransformXX = 1;
Geometry.TransformXY = 0;
Geometry.TransformXZ = 0;
Geometry.TransformYX = 0;
Geometry.TransformYY = 1;
Geometry.TransformYZ = 0;
Geometry.TransformZX = 0;
Geometry.TransformZY = 0;
Geometry.TransformZZ = 1;
Geometry.Volumes = 0;
Geometry.VolumeNumbers = 0;
Geometry.Color.Points = {90,90,90};
Geometry.Color.Lines = {0,0,255};
Geometry.Color.Surfaces = {128,128,128};
Geometry.Color.Volumes = {255,255,0};
Geometry.Color.Selection = {255,0,0};
Geometry.Color.HighlightZero = {255,0,0};
Geometry.Color.HighlightOne = {255,150,0};
Geometry.Color.HighlightTwo = {255,255,0};
Geometry.Color.Tangents = {255,255,0};
Geometry.Color.Normals = {255,0,0};
Geometry.Color.Projection = {0,255,0};
Mesh.Algorithm = 2;
Mesh.Algorithm3D = 4;
Mesh.AngleSmoothNormals = 30;
Mesh.AnisoMax = 9.999999999999999e+32;
Mesh.AllowSwapAngle = 10;
Mesh.BdfFieldFormat = 1;
Mesh.Binary = 0;
Mesh.Bunin = 0;
Mesh.Lloyd = 0;
Mesh.SmoothCrossField = 0;
Mesh.CgnsImportOrder = 1;
Mesh.ChacoArchitecture = 1;
Mesh.ChacoEigensolver = 1;
Mesh.ChacoEigTol = 0.001;
Mesh.ChacoGlobalMethod = 1;
Mesh.ChacoHypercubeDim = 0;
Mesh.ChacoLocalMethod = 1;
Mesh.ChacoMeshDim1 = 1;
Mesh.ChacoMeshDim2 = 1;
Mesh.ChacoMeshDim3 = 1;
Mesh.ChacoPartitionSection = 1;
Mesh.ChacoSeed = 7654321;
Mesh.ChacoVMax = 250;
Mesh.ChacoParamINTERNAL_VERTICES = 0;
Mesh.ChacoParamREFINE_MAP = 1;
Mesh.ChacoParamREFINE_PARTITION = 0;
Mesh.ChacoParamTERMINAL_PROPOGATION = 0;
Mesh.CharacteristicLengthExtendFromBoundary = 1;
Mesh.CharacteristicLengthFactor = 1;
Mesh.CharacteristicLengthMin = 0;
Mesh.CharacteristicLengthMax = 1e+22;
Mesh.CharacteristicLengthFromCurvature = 0;
Mesh.CharacteristicLengthFromPoints = 1;
Mesh.Clip = 0;
Mesh.ColorCarousel = 1;
Mesh.CpuTime = 0.0442179985046387;
Mesh.DrawSkinOnly = 0;
Mesh.Dual = 0;
Mesh.ElementOrder = 1;
Mesh.Explode = 1;
Mesh.FlexibleTransfinite = 0;
Mesh.Format = 10;
Mesh.Hexahedra = 1;
Mesh.HighOrderNumLayers = 6;
Mesh.HighOrderOptimize = 0;
Mesh.HighOrderPoissonRatio = 0.33;
Mesh.HighOrderThresholdMin = 0.1;
Mesh.HighOrderThresholdMax = 2;
Mesh.LabelSampling = 1;
Mesh.LabelType = 0;
Mesh.LcIntegrationPrecision = 1e-09;
Mesh.Light = 1;
Mesh.LightLines = 1;
Mesh.LightTwoSide = 1;
Mesh.Lines = 0;
Mesh.LineNumbers = 0;
Mesh.LineWidth = 1;
Mesh.MeshOnlyVisible = 0;
Mesh.MetisAlgorithm = 1;
Mesh.MetisEdgeMatching = 3;
Mesh.MetisRefinementAlgorithm = 3;
Mesh.MinimumCirclePoints = 7;
Mesh.MinimumCurvePoints = 3;
Mesh.MshFileVersion = 2.2;
Mesh.MshFilePartitioned = 0;
Mesh.MultiplePassesMeshes = 0;
Mesh.PartitionHexWeight = 1;
Mesh.PartitionPrismWeight = 1;
Mesh.PartitionPyramidWeight = 1;
Mesh.PartitionQuadWeight = 1;
Mesh.PartitionTetWeight = 1;
Mesh.PartitionTriWeight = 1;
Mesh.NbHexahedra = 0;
Mesh.NbNodes = 74;
Mesh.NbPartitions = 1;
Mesh.NbPrisms = 0;
Mesh.NbPyramids = 0;
Mesh.NbQuadrangles = 0;
Mesh.NbTetrahedra = 212;
Mesh.NbTriangles = 142;
Mesh.Normals = 0;
Mesh.NumSubEdges = 2;
Mesh.Optimize = 0;
Mesh.OptimizeNetgen = 0;
Mesh.Partitioner = 2;
Mesh.Points = 0;
Mesh.PointNumbers = 0;
Mesh.PointSize = 4;
Mesh.PointType = 0;
Mesh.Prisms = 1;
Mesh.Pyramids = 1;
Mesh.Quadrangles = 1;
Mesh.QualityInf = 0;
Mesh.QualitySup = 0;
Mesh.QualityType = 2;
Mesh.RadiusInf = 0;
Mesh.RadiusSup = 0;
Mesh.RandomFactor = 1e-09;
Mesh.IgnorePartitionBoundary = 0;
Mesh.RecombinationAlgorithm = 1;
Mesh.RecombineAll = 0;
Mesh.Recombine3DAll = 0;
Mesh.DoRecombinationTest = 0;
Mesh.RecombinationTestHorizStart = 1;
Mesh.RecombinationTestNoGreedyStrat = 0;
Mesh.RecombinationTestNewStrat = 0;
Mesh.RemeshAlgorithm = 0;
Mesh.RemeshParametrization = 4;
Mesh.RefineSteps = 10;
Mesh.Remove4Triangles = 0;
Mesh.ReverseAllNormals = 0;
Mesh.SaveAll = 0;
Mesh.SaveElementTagType = 1;
Mesh.SaveParametric = 0;
Mesh.SaveGroupsOfNodes = 0;
Mesh.ScalingFactor = 1;
Mesh.SecondOrderExperimental = 0;
Mesh.SecondOrderIncomplete = 0;
Mesh.SecondOrderLinear = 0;
Mesh.Smoothing = 1;
Mesh.SmoothNormals = 0;
Mesh.SmoothRatio = 1.8;
Mesh.SubdivisionAlgorithm = 0;
Mesh.SurfaceEdges = 1;
Mesh.SurfaceFaces = 0;
Mesh.SurfaceNumbers = 0;
Mesh.SwitchElementTags = 0;
Mesh.Tangents = 0;
Mesh.Tetrahedra = 1;
Mesh.ToleranceEdgeLength = 0;
Mesh.Triangles = 1;
Mesh.VolumeEdges = 1;
Mesh.VolumeFaces = 0;
Mesh.VolumeNumbers = 0;
Mesh.Voronoi = 0;
Mesh.ZoneDefinition = 0;
Mesh.Color.Points = {0,0,255};
Mesh.Color.PointsSup = {255,0,255};
Mesh.Color.Lines = {0,0,0};
Mesh.Color.Triangles = {160,150,255};
Mesh.Color.Quadrangles = {130,120,225};
Mesh.Color.Tetrahedra = {160,150,255};
Mesh.Color.Hexahedra = {130,120,225};
Mesh.Color.Prisms = {232,210,23};
Mesh.Color.Pyramids = {217,113,38};
Mesh.Color.Tangents = {255,255,0};
Mesh.Color.Normals = {255,0,0};
Mesh.Color.Zero = {255,120,0};
Mesh.Color.One = {0,255,132};
Mesh.Color.Two = {255,160,0};
Mesh.Color.Three = {0,255,192};
Mesh.Color.Four = {255,200,0};
Mesh.Color.Five = {0,216,255};
Mesh.Color.Six = {255,240,0};
Mesh.Color.Seven = {0,176,255};
Mesh.Color.Eight = {228,255,0};
Mesh.Color.Nine = {0,116,255};
Mesh.Color.Ten = {188,255,0};
Mesh.Color.Eleven = {0,76,255};
Mesh.Color.Twelve = {148,255,0};
Mesh.Color.Thirteen = {24,0,255};
Mesh.Color.Fourteen = {108,255,0};
Mesh.Color.Fifteen = {84,0,255};
Mesh.Color.Sixteen = {68,255,0};
Mesh.Color.Seventeen = {104,0,255};
Mesh.Color.Eighteen = {0,255,52};
Mesh.Color.Nineteen = {184,0,255};
Solver.Executable0 = "";
Solver.Executable1 = "";
Solver.Executable2 = "";
Solver.Executable3 = "";
Solver.Executable4 = "";
Solver.Executable5 = "";
Solver.Executable6 = "";
Solver.Executable7 = "";
Solver.Executable8 = "";
Solver.Executable9 = "";
Solver.Name0 = "GetDP";
Solver.Name1 = "";
Solver.Name2 = "";
Solver.Name3 = "";
Solver.Name4 = "";
Solver.Name5 = "";
Solver.Name6 = "";
Solver.Name7 = "";
Solver.Name8 = "";
Solver.Name9 = "";
Solver.RemoteLogin0 = "";
Solver.RemoteLogin1 = "";
Solver.RemoteLogin2 = "";
Solver.RemoteLogin3 = "";
Solver.RemoteLogin4 = "";
Solver.RemoteLogin5 = "";
Solver.RemoteLogin6 = "";
Solver.RemoteLogin7 = "";
Solver.RemoteLogin8 = "";
Solver.RemoteLogin9 = "";
Solver.SocketName = ".gmshsock";
Solver.AlwaysListen = 0;
Solver.AutoArchiveOutputFiles = 0;
Solver.AutoCheck = 1;
Solver.AutoSaveDatabase = 0;
Solver.AutoMesh = 1;
Solver.AutoMergeFile = 1;
Solver.AutoHideNewViews = 0;
Solver.AutoShowLastStep = 1;
Solver.Plugins = 0;
Solver.Timeout = 5;
PostProcessing.AnimationDelay = 0.1;
PostProcessing.AnimationCycle = 0;
PostProcessing.AnimationStep = 1;
PostProcessing.CombineRemoveOriginal = 1;
PostProcessing.Format = 10;
PostProcessing.HorizontalScales = 1;
PostProcessing.Link = 0;
PostProcessing.NbViews = 0;
PostProcessing.Plugins = 1;
PostProcessing.Smoothing = 0;
Print.ParameterCommand = "Mesh.Clip=1; View.Clip=1; General.ClipWholeElements=1; General.Clip0D=Print.Parameter; SetChanged;";
Print.Parameter = 0;
Print.ParameterFirst = -1;
Print.ParameterLast = 1;
Print.ParameterSteps = 10;
Print.Background = 0;
Print.CompositeWindows = 0;
Print.DeleteTemporaryFiles = 1;
Print.EpsBestRoot = 1;
Print.EpsCompress = 0;
Print.EpsLineWidthFactor = 1;
Print.EpsOcclusionCulling = 1;
Print.EpsPointSizeFactor = 1;
Print.EpsPS3Shading = 0;
Print.EpsQuality = 1;
Print.Format = 10;
Print.GeoLabels = 1;
Print.GeoOnlyPhysicals = 0;
Print.GifDither = 0;
Print.GifInterlace = 0;
Print.GifSort = 1;
Print.GifTransparent = 0;
Print.Height = -1;
Print.JpegQuality = 100;
Print.JpegSmoothing = 0;
Print.PostElementary = 1;
Print.PostElement = 0;
Print.PostGamma = 0;
Print.PostEta = 0;
Print.PostRho = 0;
Print.PostDisto = 0;
Print.TexAsEquation = 0;
Print.Text = 1;
Print.Width = -1;

-------------- next part --------------
lc1 = 0.5;
lc2 = 0.05;
a = 1;
b = 1;
c = 1;

p1 = newp; Point(p1) = {0, 0, 0, lc1};
p2 = newp; Point(p2) = {a, 0, 0, lc1};
p3 = newp; Point(p3) = {a, b, 0, lc1};
p4 = newp; Point(p4) = {0, b, 0, lc1};
Printf("%f %f %f %f", p1, p2, p3, p4);
l1 = newl; Line(l1) = {p1, p2};
Line(l1+1) = {p2, p3};
Line(l1+2) = {p3, p4};
Line(l1+3) = {p4, p1};

ll1 = newl; Line Loop(ll1) = {l1:l1+3};
ps1 = news; Plane Surface(ps1) = {ll1};
Printf("%f", ps1);
e1[] = Extrude{0, 0, c}{Surface{ps1};};
Printf("%f %f %f %f %f %f", e1[0], e1[1], e1[2], e1[3], e1[4], e1[5]);

sl1 = news; Surface Loop(sl1) = {ps1, e1[2], e1[3], e1[4], e1[5], e1[0]};

v1 = newv; Volume(v1) = {sl1};
pv1 = newv; Physical Volume(pv1) = {v1};

pc1 = newp; Point(pc1) = {a/2,b/2,c/2,lc2};
Point(pc1+1) = {a/2-0.1,b/2,c/2,lc2};
Point(pc1+2) = {a/2,b/2-0.1,c/2,lc2};
Point(pc1+3) = {a/2+0.1,b/2,c/2,lc2};
Point(pc1+4) = {a/2,b/2+0.1,c/2,lc2};

lc1 = newl;
Circle(lc1) = {pc1+1, pc1, pc1+2};
Circle(lc1+1) = {pc1+2, pc1, pc1+3};
Circle(lc1+2) = {pc1+3, pc1, pc1+4};
Circle(lc1+3) = {pc1+4, pc1, pc1+1};
ll2 = newl; Line Loop(ll2) = {lc1:lc1+3};
sc = news; Plane Surface(sc) = {ll2}; 


Surface{sc} In Volume{v1};



More information about the gmsh mailing list