File: cube.mad

package info (click to toggle)
madlib 1.3.0-5
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 8,196 kB
  • sloc: cpp: 39,851; sh: 10,041; makefile: 473
file content (137 lines) | stat: -rw-r--r-- 3,442 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
// -*- C++ -*-

Input {
  Mesh {
//     GeoFile = "cube.geo";
    MshFile = "cube.msh";
//     MshFile = "cube_fullGeo.msh";
//     GeoFile = "cube_fullGeo.geo";
  }
}
Output {
  Prefix = "result/";
  Frequency = 1;
  Type = Msh;
}
Task {
  Type = MobileObject; // MobileObject RemoveRegion SizeField RemoveSliverFaces LaplaceSmoothing GeoConstraints TopoConstraints FaceSwap UglyMesh RemoveSliverRegions DESC EdgeSwap GeoMatcher EdgeSplit EdgeCollapse EdgeSplitCollapse FaceCollapse OptimizeLength OptimizeShape None
}
Debug {
  DebugLevel = 1;
}
Adaptation {
   MaxNumberOfInnerIteration = 5;
//   LowerLengthBound     = 0.5; // 0.8
//   UpperLengthBound     = 2.0; // 2.4
//   SwapMinImproveRatio  = 1.0;
//   SliverQuality        = 0.001;
//   SplitCanMakeSlivers    = Yes;
//   CollapseCanMakeSlivers = Yes;
//   SliverLowerLengthBound = 0.2; // 0.2
//   SliverUpperLengthBound = 5.0; // 5.0
  CollapseOnBoundary = Yes;
  BoundaryCollapses {
    Tolerance = 1.e-6;
  }
  SwapOnBoundary = Yes;
  BoundarySwaps {
    Tolerance = 1.e-6;
  }
//   TrackGeometry = No;
//   VertexSnapping {
//     IsMeshTheCavity = No;
//     CavityThickness = 3;
//     StiffnessAlteration = 1.;
//   }
}
MovingObjects {
  Object = "CubeFix" {
    Geometry {
      GeometricalType = Face; 
      GeometricalTags = [1];
    }
    Kinematics {
      KinematicsSpecification = Displacement;
      Displacement {
        Formulation = ["0." "0." "0."];
      }
    }
//     LocalSizeField = "localSF" {
//       DistanceComputation = ToWallFaces;
//       Orientation = Anisotropic;
//       Radius = 0.3;
// //       Isotropic {
// //         Size  = "0.005+(x/1.0)*(0.1-0.005)"; // linear
// //         //Size  = "0.02+(sqrt(x)/sqrt(0.5))*(0.2-0.02)"; // sqrt
// //       }
//       Anisotropic {
//         NormalSize  = "0.0002+(x/0.3)*(0.05-0.0002)"; // linear
//         TangentSize = "0.3";
//       }
//       CurvatureBasedLimiter {
//         Enable = Yes; // Yes No
//         // TangentSizeOverRadius = 1.000000e+00;
//         // CurvatureLimiter = 1.000000e+06;
//       }
//     }
  }
}
// SizeField = "InitLength" {
//   Type = PiecewiseLinear;
//   PiecewiseLinear {
//     Source = InitialLength;
//   }
// }
SizeField = "Analytical" {
  Type = Analytical;
  Analytical {
    OrientationType = Isotropic;
    Isotropic {
      Length = "0.3+0.25*sin(6.28*t)";
    }
//     Anisotropic {
//       Lengths = ["1.2" "1.2" "0.1"];
//       Direction1 = ["1." "0." "0."];
//       Direction2 = ["0." "1." "0."];
//       Direction3 = ["0." "0." "1."];
//     }
  }
}
// SizeField = "A" {
//   Type = Analytical;
//   Analytical {
//     OrientationType = Anisotropic;
//     Anisotropic {
//       Lengths = ["1." "1." "0.01+0.32*z"];
//       Direction1 = ["1." "0." "0."];
//       Direction2 = ["0." "1." "0."];
//       Direction3 = ["0." "0." "1."];
//     }
//   }
// }
// SizeField = "A2" {
//   Type = Analytical;
//   Analytical {
//     OrientationType = Anisotropic;
//     Anisotropic {
//       Lengths = ["1." "0.01+0.32*y" "1."];
//       Direction1 = ["1." "0." "0."];
//       Direction2 = ["0." "1." "0."];
//       Direction3 = ["0." "0." "1."];
//     }
//   }
// }
// SizeField = "CurvatureSF" {
//   Type = PiecewiseLinear;
//   PiecewiseLinear {
//     Source = Curvature; // InitialLength Curvature
//   }
// }
NodeMotion {
  Type = None;
}
TimeSpecifications {
  //  MaxTimeSteps = 20;
  TimeStep = 0.2;
  FinalTime = 3.;
}