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

*** empty log message ***

parent 4c699e9e
No related branches found
No related tags found
No related merge requests found
// $Id: PViewDataGModel.cpp,v 1.18 2008-02-24 20:42:10 geuzaine Exp $
// $Id: PViewDataGModel.cpp,v 1.19 2008-02-24 21:05:04 geuzaine Exp $
//
// Copyright (C) 1997-2008 C. Geuzaine, J.-F. Remacle
//
......@@ -50,12 +50,16 @@ PViewDataGModel::PViewDataGModel(GModel *model) : _model(model)
When reading a .msh file:
* get node number in file
* get vertex pointer from _model->getVertexByTag(num)
* if MVertex
has no dataIndex, increment it (need global value stored in GModel)
it has one, do nothing
* fill nodeData[step][dataIndex]
nodeData.resize(std::max(_model->getMaxNodeDataIndex(), numDataInFile));
loop over lines:
* get node number in file
* get vertex pointer from _model->getVertexByTag(num)
* if MVertex has no dataIndex:
increment it (need global value stored in GModel)
fill std::vector<double> tmp
nodeData[step].push_back(tmp)
else:
add data nodeData[step][dataIndex]
.msh file format:
......
lc1=0.1;
lc2=0.001;
// Cubo
Point(1)={-2, -2, 0, lc1};
Point(2)={3, -2, 0, lc1};
Point(3)={3, 2, 0, lc1};
Point(4)={-2, 2, 0, lc1};
Spline(1)={1,2};
Spline(2)={2,3};
Spline(3)={3,4};
Spline(4)={4,1};
// NACA 0012 - Perfil da Raiz da Asa;
Point(101)={+1.0000000000000000e+000,+0.0000000000000000e+000,+0.0000000000000000e+000,lc2};
Point(102)={+9.9199000000000004e-001,-1.3209999999999999e-003,+0.0000000000000000e+000,lc2};
Point(103)={+9.8340000000000005e-001,-2.7246000000000002e-003,+0.0000000000000000e+000,lc2};
Point(104)={+9.7423999999999999e-001,-4.2063999999999999e-003,+0.0000000000000000e+000,lc2};
Point(105)={+9.6453999999999995e-001,-5.7619000000000004e-003,+0.0000000000000000e+000,lc2};
Point(106)={+9.5430999999999999e-001,-7.3866000000000001e-003,+0.0000000000000000e+000,lc2};
Point(107)={+9.4355999999999995e-001,-8.9133000000000007e-003,+0.0000000000000000e+000,lc2};
Point(108)={+9.3230000000000002e-001,-1.0378999999999999e-002,+0.0000000000000000e+000,lc2};
Point(109)={+9.2056000000000004e-001,-1.1886000000000001e-002,+0.0000000000000000e+000,lc2};
Point(110)={+9.0834999999999999e-001,-1.3433000000000000e-002,+0.0000000000000000e+000,lc2};
Point(111)={+8.9568999999999999e-001,-1.5013000000000000e-002,+0.0000000000000000e+000,lc2};
Point(112)={+8.8258999999999999e-001,-1.6622999999999999e-002,+0.0000000000000000e+000,lc2};
Point(113)={+8.6907999999999996e-001,-1.8258000000000000e-002,+0.0000000000000000e+000,lc2};
Point(114)={+8.5518000000000005e-001,-1.9914999999999999e-002,+0.0000000000000000e+000,lc2};
Point(115)={+8.4091000000000005e-001,-2.1588000000000000e-002,+0.0000000000000000e+000,lc2};
Point(116)={+8.2628000000000001e-001,-2.3274000000000000e-002,+0.0000000000000000e+000,lc2};
Point(117)={+8.1132000000000004e-001,-2.4969000000000002e-002,+0.0000000000000000e+000,lc2};
Point(118)={+7.9605000000000004e-001,-2.6668000000000001e-002,+0.0000000000000000e+000,lc2};
Point(119)={+7.8047999999999995e-001,-2.8368000000000001e-002,+0.0000000000000000e+000,lc2};
Point(120)={+7.6465000000000005e-001,-3.0062999999999999e-002,+0.0000000000000000e+000,lc2};
Point(121)={+7.4858000000000002e-001,-3.1751000000000001e-002,+0.0000000000000000e+000,lc2};
Point(122)={+7.3228000000000004e-001,-3.3426999999999998e-002,+0.0000000000000000e+000,lc2};
Point(123)={+7.1577999999999997e-001,-3.5085999999999999e-002,+0.0000000000000000e+000,lc2};
Point(124)={+6.9910000000000005e-001,-3.6726000000000002e-002,+0.0000000000000000e+000,lc2};
Point(125)={+6.8227000000000004e-001,-3.8342000000000001e-002,+0.0000000000000000e+000,lc2};
Point(126)={+6.6530000000000000e-001,-3.9928999999999999e-002,+0.0000000000000000e+000,lc2};
Point(127)={+6.4822000000000002e-001,-4.1485000000000001e-002,+0.0000000000000000e+000,lc2};
Point(128)={+6.3105999999999995e-001,-4.3004000000000001e-002,+0.0000000000000000e+000,lc2};
Point(129)={+6.1382000000000003e-001,-4.4482000000000001e-002,+0.0000000000000000e+000,lc2};
Point(130)={+5.9655000000000002e-001,-4.5915999999999998e-002,+0.0000000000000000e+000,lc2};
Point(131)={+5.7925000000000004e-001,-4.7301999999999997e-002,+0.0000000000000000e+000,lc2};
Point(132)={+5.6194999999999995e-001,-4.8634999999999998e-002,+0.0000000000000000e+000,lc2};
Point(133)={+5.4468000000000005e-001,-4.9911999999999998e-002,+0.0000000000000000e+000,lc2};
Point(134)={+5.2744000000000002e-001,-5.1128000000000000e-002,+0.0000000000000000e+000,lc2};
Point(135)={+5.1027000000000000e-001,-5.2280000000000000e-002,+0.0000000000000000e+000,lc2};
Point(136)={+4.9319000000000002e-001,-5.3365000000000003e-002,+0.0000000000000000e+000,lc2};
Point(137)={+4.7621000000000002e-001,-5.4378000000000003e-002,+0.0000000000000000e+000,lc2};
Point(138)={+4.5934999999999998e-001,-5.5316999999999998e-002,+0.0000000000000000e+000,lc2};
Point(139)={+4.4263999999999998e-001,-5.6177999999999999e-002,+0.0000000000000000e+000,lc2};
Point(140)={+4.2609000000000002e-001,-5.6958000000000002e-002,+0.0000000000000000e+000,lc2};
Point(141)={+4.0971999999999997e-001,-5.7653999999999997e-002,+0.0000000000000000e+000,lc2};
Point(142)={+3.9354000000000000e-001,-5.8264000000000003e-002,+0.0000000000000000e+000,lc2};
Point(143)={+3.7758000000000003e-001,-5.8785999999999998e-002,+0.0000000000000000e+000,lc2};
Point(144)={+3.6185000000000000e-001,-5.9218000000000000e-002,+0.0000000000000000e+000,lc2};
Point(145)={+3.4637000000000001e-001,-5.9558000000000000e-002,+0.0000000000000000e+000,lc2};
Point(146)={+3.3115000000000000e-001,-5.9804999999999997e-002,+0.0000000000000000e+000,lc2};
Point(147)={+3.1619999999999998e-001,-5.9957999999999997e-002,+0.0000000000000000e+000,lc2};
Point(148)={+3.0153000000000002e-001,-6.0017000000000001e-002,+0.0000000000000000e+000,lc2};
Point(149)={+2.8717999999999999e-001,-5.9979999999999999e-002,+0.0000000000000000e+000,lc2};
Point(150)={+2.7312999999999998e-001,-5.9850000000000000e-002,+0.0000000000000000e+000,lc2};
Point(151)={+2.5940000000000002e-001,-5.9624999999999997e-002,+0.0000000000000000e+000,lc2};
Point(152)={+2.4601000000000001e-001,-5.9306999999999999e-002,+0.0000000000000000e+000,lc2};
Point(153)={+2.3296000000000000e-001,-5.8896999999999998e-002,+0.0000000000000000e+000,lc2};
Point(154)={+2.2026000000000001e-001,-5.8397999999999999e-002,+0.0000000000000000e+000,lc2};
Point(155)={+2.0791999999999999e-001,-5.7810000000000000e-002,+0.0000000000000000e+000,lc2};
Point(156)={+1.9595000000000001e-001,-5.7135999999999999e-002,+0.0000000000000000e+000,lc2};
Point(157)={+1.8435000000000001e-001,-5.6377999999999998e-002,+0.0000000000000000e+000,lc2};
Point(158)={+1.7313000000000001e-001,-5.5539999999999999e-002,+0.0000000000000000e+000,lc2};
Point(159)={+1.6228999999999999e-001,-5.4625000000000000e-002,+0.0000000000000000e+000,lc2};
Point(160)={+1.5182999999999999e-001,-5.3636000000000003e-002,+0.0000000000000000e+000,lc2};
Point(161)={+1.4176000000000000e-001,-5.2575999999999998e-002,+0.0000000000000000e+000,lc2};
Point(162)={+1.3208000000000000e-001,-5.1450000000000003e-002,+0.0000000000000000e+000,lc2};
Point(163)={+1.2279000000000000e-001,-5.0261000000000000e-002,+0.0000000000000000e+000,lc2};
Point(164)={+1.1389000000000001e-001,-4.9013000000000001e-002,+0.0000000000000000e+000,lc2};
Point(165)={+1.0538000000000000e-001,-4.7711000000000003e-002,+0.0000000000000000e+000,lc2};
Point(166)={+9.7255999999999995e-002,-4.6358000000000003e-002,+0.0000000000000000e+000,lc2};
Point(167)={+8.9519000000000001e-002,-4.4958999999999999e-002,+0.0000000000000000e+000,lc2};
Point(168)={+8.2165000000000002e-002,-4.3519000000000002e-002,+0.0000000000000000e+000,lc2};
Point(169)={+7.5189000000000006e-002,-4.2041000000000002e-002,+0.0000000000000000e+000,lc2};
Point(170)={+6.8587999999999996e-002,-4.0529999999999997e-002,+0.0000000000000000e+000,lc2};
Point(171)={+6.2356000000000002e-002,-3.8989999999999997e-002,+0.0000000000000000e+000,lc2};
Point(172)={+5.6487000000000002e-002,-3.7425000000000000e-002,+0.0000000000000000e+000,lc2};
Point(173)={+5.0973999999999998e-002,-3.5839999999999997e-002,+0.0000000000000000e+000,lc2};
Point(174)={+4.5809999999999997e-002,-3.4237999999999998e-002,+0.0000000000000000e+000,lc2};
Point(175)={+4.0987999999999997e-002,-3.2624000000000000e-002,+0.0000000000000000e+000,lc2};
Point(176)={+3.6498999999999997e-002,-3.1001000000000001e-002,+0.0000000000000000e+000,lc2};
Point(177)={+3.2333000000000001e-002,-2.9373000000000000e-002,+0.0000000000000000e+000,lc2};
Point(178)={+2.8482000000000000e-002,-2.7744000000000001e-002,+0.0000000000000000e+000,lc2};
Point(179)={+2.4936000000000000e-002,-2.6116000000000000e-002,+0.0000000000000000e+000,lc2};
Point(180)={+2.1683000000000001e-002,-2.4494999999999999e-002,+0.0000000000000000e+000,lc2};
Point(181)={+1.8714000000000001e-002,-2.2882000000000000e-002,+0.0000000000000000e+000,lc2};
Point(182)={+1.6017000000000000e-002,-2.1281000000000001e-002,+0.0000000000000000e+000,lc2};
Point(183)={+1.3580000000000000e-002,-1.9694000000000000e-002,+0.0000000000000000e+000,lc2};
Point(184)={+1.1391999999999999e-002,-1.8124999999999999e-002,+0.0000000000000000e+000,lc2};
Point(185)={+9.4412000000000003e-003,-1.6577000000000001e-002,+0.0000000000000000e+000,lc2};
Point(186)={+7.7146000000000003e-003,-1.5051000000000000e-002,+0.0000000000000000e+000,lc2};
Point(187)={+6.1999999999999998e-003,-1.3550000000000000e-002,+0.0000000000000000e+000,lc2};
Point(188)={+4.8849999999999996e-003,-1.2076000000000000e-002,+0.0000000000000000e+000,lc2};
Point(189)={+3.7567999999999998e-003,-1.0632000000000001e-002,+0.0000000000000000e+000,lc2};
Point(190)={+2.8031000000000002e-003,-9.2178999999999994e-003,+0.0000000000000000e+000,lc2};
Point(191)={+2.0111000000000000e-003,-7.8358999999999998e-003,+0.0000000000000000e+000,lc2};
Point(192)={+1.3686000000000000e-003,-6.4863999999999998e-003,+0.0000000000000000e+000,lc2};
Point(193)={+8.6341000000000000e-004,-5.1690000000000000e-003,+0.0000000000000000e+000,lc2};
Point(194)={+4.8376000000000002e-004,-3.8815000000000000e-003,+0.0000000000000000e+000,lc2};
Point(195)={+2.1870000000000000e-004,-2.6178999999999998e-003,+0.0000000000000000e+000,lc2};
Point(196)={+5.8739999999999997e-005,-1.3609000000000000e-003,+0.0000000000000000e+000,lc2};
Point(197)={+0.0000000000000000e+000,+0.0000000000000000e+000,+0.0000000000000000e+000,lc2};
Point(198)={+5.8739999999999997e-005,+1.3609000000000000e-003,+0.0000000000000000e+000,lc2};
Point(199)={+2.1870000000000000e-004,+2.6178999999999998e-003,+0.0000000000000000e+000,lc2};
Point(200)={+4.8376000000000002e-004,+3.8815000000000000e-003,+0.0000000000000000e+000,lc2};
Point(201)={+8.6341000000000000e-004,+5.1690000000000000e-003,+0.0000000000000000e+000,lc2};
Point(202)={+1.3686000000000000e-003,+6.4863999999999998e-003,+0.0000000000000000e+000,lc2};
Point(203)={+2.0111000000000000e-003,+7.8358999999999998e-003,+0.0000000000000000e+000,lc2};
Point(204)={+2.8031000000000002e-003,+9.2178999999999994e-003,+0.0000000000000000e+000,lc2};
Point(205)={+3.7567999999999998e-003,+1.0632000000000001e-002,+0.0000000000000000e+000,lc2};
Point(206)={+4.8849999999999996e-003,+1.2076000000000000e-002,+0.0000000000000000e+000,lc2};
Point(207)={+6.1999999999999998e-003,+1.3550000000000000e-002,+0.0000000000000000e+000,lc2};
Point(208)={+7.7146000000000003e-003,+1.5051000000000000e-002,+0.0000000000000000e+000,lc2};
Point(209)={+9.4412000000000003e-003,+1.6577000000000001e-002,+0.0000000000000000e+000,lc2};
Point(210)={+1.1391999999999999e-002,+1.8124999999999999e-002,+0.0000000000000000e+000,lc2};
Point(211)={+1.3580000000000000e-002,+1.9694000000000000e-002,+0.0000000000000000e+000,lc2};
Point(212)={+1.6017000000000000e-002,+2.1281000000000001e-002,+0.0000000000000000e+000,lc2};
Point(213)={+1.8714000000000001e-002,+2.2882000000000000e-002,+0.0000000000000000e+000,lc2};
Point(214)={+2.1683000000000001e-002,+2.4494999999999999e-002,+0.0000000000000000e+000,lc2};
Point(215)={+2.4936000000000000e-002,+2.6116000000000000e-002,+0.0000000000000000e+000,lc2};
Point(216)={+2.8482000000000000e-002,+2.7744000000000001e-002,+0.0000000000000000e+000,lc2};
Point(217)={+3.2333000000000001e-002,+2.9373000000000000e-002,+0.0000000000000000e+000,lc2};
Point(218)={+3.6498999999999997e-002,+3.1001000000000001e-002,+0.0000000000000000e+000,lc2};
Point(219)={+4.0987999999999997e-002,+3.2624000000000000e-002,+0.0000000000000000e+000,lc2};
Point(220)={+4.5809999999999997e-002,+3.4237999999999998e-002,+0.0000000000000000e+000,lc2};
Point(221)={+5.0973999999999998e-002,+3.5839999999999997e-002,+0.0000000000000000e+000,lc2};
Point(222)={+5.6487000000000002e-002,+3.7425000000000000e-002,+0.0000000000000000e+000,lc2};
Point(223)={+6.2356000000000002e-002,+3.8989999999999997e-002,+0.0000000000000000e+000,lc2};
Point(224)={+6.8587999999999996e-002,+4.0529999999999997e-002,+0.0000000000000000e+000,lc2};
Point(225)={+7.5189000000000006e-002,+4.2041000000000002e-002,+0.0000000000000000e+000,lc2};
Point(226)={+8.2165000000000002e-002,+4.3519000000000002e-002,+0.0000000000000000e+000,lc2};
Point(227)={+8.9519000000000001e-002,+4.4958999999999999e-002,+0.0000000000000000e+000,lc2};
Point(228)={+9.7255999999999995e-002,+4.6358000000000003e-002,+0.0000000000000000e+000,lc2};
Point(229)={+1.0538000000000000e-001,+4.7711000000000003e-002,+0.0000000000000000e+000,lc2};
Point(230)={+1.1389000000000001e-001,+4.9013000000000001e-002,+0.0000000000000000e+000,lc2};
Point(231)={+1.2279000000000000e-001,+5.0261000000000000e-002,+0.0000000000000000e+000,lc2};
Point(232)={+1.3208000000000000e-001,+5.1450000000000003e-002,+0.0000000000000000e+000,lc2};
Point(233)={+1.4176000000000000e-001,+5.2575999999999998e-002,+0.0000000000000000e+000,lc2};
Point(234)={+1.5182999999999999e-001,+5.3636000000000003e-002,+0.0000000000000000e+000,lc2};
Point(235)={+1.6228999999999999e-001,+5.4625000000000000e-002,+0.0000000000000000e+000,lc2};
Point(236)={+1.7313000000000001e-001,+5.5539999999999999e-002,+0.0000000000000000e+000,lc2};
Point(237)={+1.8435000000000001e-001,+5.6377999999999998e-002,+0.0000000000000000e+000,lc2};
Point(238)={+1.9595000000000001e-001,+5.7135999999999999e-002,+0.0000000000000000e+000,lc2};
Point(239)={+2.0791999999999999e-001,+5.7810000000000000e-002,+0.0000000000000000e+000,lc2};
Point(240)={+2.2026000000000001e-001,+5.8397999999999999e-002,+0.0000000000000000e+000,lc2};
Point(241)={+2.3296000000000000e-001,+5.8896999999999998e-002,+0.0000000000000000e+000,lc2};
Point(242)={+2.4601000000000001e-001,+5.9306999999999999e-002,+0.0000000000000000e+000,lc2};
Point(243)={+2.5940000000000002e-001,+5.9624999999999997e-002,+0.0000000000000000e+000,lc2};
Point(244)={+2.7312999999999998e-001,+5.9850000000000000e-002,+0.0000000000000000e+000,lc2};
Point(245)={+2.8717999999999999e-001,+5.9979999999999999e-002,+0.0000000000000000e+000,lc2};
Point(246)={+3.0153000000000002e-001,+6.0017000000000001e-002,+0.0000000000000000e+000,lc2};
Point(247)={+3.1619999999999998e-001,+5.9957999999999997e-002,+0.0000000000000000e+000,lc2};
Point(248)={+3.3115000000000000e-001,+5.9804999999999997e-002,+0.0000000000000000e+000,lc2};
Point(249)={+3.4637000000000001e-001,+5.9558000000000000e-002,+0.0000000000000000e+000,lc2};
Point(250)={+3.6185000000000000e-001,+5.9218000000000000e-002,+0.0000000000000000e+000,lc2};
Point(251)={+3.7758000000000003e-001,+5.8785999999999998e-002,+0.0000000000000000e+000,lc2};
Point(252)={+3.9354000000000000e-001,+5.8264000000000003e-002,+0.0000000000000000e+000,lc2};
Point(253)={+4.0971999999999997e-001,+5.7653999999999997e-002,+0.0000000000000000e+000,lc2};
Point(254)={+4.2609000000000002e-001,+5.6958000000000002e-002,+0.0000000000000000e+000,lc2};
Point(255)={+4.4263999999999998e-001,+5.6177999999999999e-002,+0.0000000000000000e+000,lc2};
Point(256)={+4.5934999999999998e-001,+5.5316999999999998e-002,+0.0000000000000000e+000,lc2};
Point(257)={+4.7621000000000002e-001,+5.4378000000000003e-002,+0.0000000000000000e+000,lc2};
Point(258)={+4.9319000000000002e-001,+5.3365000000000003e-002,+0.0000000000000000e+000,lc2};
Point(259)={+5.1027000000000000e-001,+5.2280000000000000e-002,+0.0000000000000000e+000,lc2};
Point(260)={+5.2744000000000002e-001,+5.1128000000000000e-002,+0.0000000000000000e+000,lc2};
Point(261)={+5.4468000000000005e-001,+4.9911999999999998e-002,+0.0000000000000000e+000,lc2};
Point(262)={+5.6194999999999995e-001,+4.8634999999999998e-002,+0.0000000000000000e+000,lc2};
Point(263)={+5.7925000000000004e-001,+4.7301999999999997e-002,+0.0000000000000000e+000,lc2};
Point(264)={+5.9655000000000002e-001,+4.5915999999999998e-002,+0.0000000000000000e+000,lc2};
Point(265)={+6.1382000000000003e-001,+4.4482000000000001e-002,+0.0000000000000000e+000,lc2};
Point(266)={+6.3105999999999995e-001,+4.3004000000000001e-002,+0.0000000000000000e+000,lc2};
Point(267)={+6.4822000000000002e-001,+4.1485000000000001e-002,+0.0000000000000000e+000,lc2};
Point(268)={+6.6530000000000000e-001,+3.9928999999999999e-002,+0.0000000000000000e+000,lc2};
Point(269)={+6.8227000000000004e-001,+3.8342000000000001e-002,+0.0000000000000000e+000,lc2};
Point(270)={+6.9910000000000005e-001,+3.6726000000000002e-002,+0.0000000000000000e+000,lc2};
Point(271)={+7.1577999999999997e-001,+3.5085999999999999e-002,+0.0000000000000000e+000,lc2};
Point(272)={+7.3228000000000004e-001,+3.3426999999999998e-002,+0.0000000000000000e+000,lc2};
Point(273)={+7.4858000000000002e-001,+3.1751000000000001e-002,+0.0000000000000000e+000,lc2};
Point(274)={+7.6465000000000005e-001,+3.0062999999999999e-002,+0.0000000000000000e+000,lc2};
Point(275)={+7.8047999999999995e-001,+2.8368000000000001e-002,+0.0000000000000000e+000,lc2};
Point(276)={+7.9605000000000004e-001,+2.6668000000000001e-002,+0.0000000000000000e+000,lc2};
Point(277)={+8.1132000000000004e-001,+2.4969000000000002e-002,+0.0000000000000000e+000,lc2};
Point(278)={+8.2628000000000001e-001,+2.3274000000000000e-002,+0.0000000000000000e+000,lc2};
Point(279)={+8.4091000000000005e-001,+2.1588000000000000e-002,+0.0000000000000000e+000,lc2};
Point(280)={+8.5518000000000005e-001,+1.9914999999999999e-002,+0.0000000000000000e+000,lc2};
Point(281)={+8.6907999999999996e-001,+1.8258000000000000e-002,+0.0000000000000000e+000,lc2};
Point(282)={+8.8258999999999999e-001,+1.6622999999999999e-002,+0.0000000000000000e+000,lc2};
Point(283)={+8.9568999999999999e-001,+1.5013000000000000e-002,+0.0000000000000000e+000,lc2};
Point(284)={+9.0834999999999999e-001,+1.3433000000000000e-002,+0.0000000000000000e+000,lc2};
Point(285)={+9.2056000000000004e-001,+1.1886000000000001e-002,+0.0000000000000000e+000,lc2};
Point(286)={+9.3230000000000002e-001,+1.0378999999999999e-002,+0.0000000000000000e+000,lc2};
Point(287)={+9.4355999999999995e-001,+8.9133000000000007e-003,+0.0000000000000000e+000,lc2};
Point(288)={+9.5430999999999999e-001,+7.3866000000000001e-003,+0.0000000000000000e+000,lc2};
Point(289)={+9.6453999999999995e-001,+5.7619000000000004e-003,+0.0000000000000000e+000,lc2};
Point(290)={+9.7423999999999999e-001,+4.2063999999999999e-003,+0.0000000000000000e+000,lc2};
Point(291)={+9.8340000000000005e-001,+2.7246000000000002e-003,+0.0000000000000000e+000,lc2};
Point(292)={+9.9199000000000004e-001,+1.3209999999999999e-003,+0.0000000000000000e+000,lc2};
// Loop das Splines para formar o perfil - Intradorso;
i=0;
j=0;
end=84;
For i In {0:end}
j=i+101;
a[i]=j;
EndFor
Spline(1001)={a[]};
// Loop das Splines para formar o perfil - Intradorso;
i=0;
j=0;
end=24;
For i In {0:end}
j=i+185;
b[i]=j;
EndFor
Spline(1002)={b[]};
// Loop das Splines para formar o perfil - Extradorso;
i=0;
j=0;
end=84;
For i In {0:end}
j=i+209;
c[i]=j;
EndFor
c[84]=101;
Spline(1003)={c[]};
Line Loop(2001)={1,2,3,4};
Line Loop(2002)={1001,1002,1003};
Plane Surface(3001)={2001,2002};
Extrude Surface { 3001, {0, 0, 0.3} };
Surface Loop(1)={3001,3013,3017,3021,3025,3029,3033,3037,3038};
Volume(2)={1};
// Flag das Arestas geométricas
Physical Line(1) = {1001,1002,1003,3007,3008,3009,3027,3028,3032};
Physical Line(2) = {4,3006,3011,3020};
//Flag das Superfícies
Physical Surface(3) = {3001,3013,3017,3021,3038};
Physical Surface(1) = {3029,3033,3037};
Physical Surface(2) = {3025};
Physical Volume(3) = {1};
This diff is collapsed.
Point (1) = {-50, -250, 0, 0.1};
Point (2) = {50, -250, 0, 20};
Point (3) = {50, 550, 0, 0.1};
Point (4) = {-50, 550, 0, 0.1};
Point (5) = {-50, -250, 50, 0.1};
Point (6) = {50, -250, 50, 20};
Point (7) = {50, 550, 50, 0.1};
Point (8) = {-50, 550, 50, 0.1};
Point (9) = {0, 0, 0, 0.1};
Point (10) = {0, 0, 50, 0.1};
Point (13) = {-10, 0, 0, 0.1};
Point (14) = {10, 0, 0, 0.1};
Point (15) = {10, 0, 50, 0.1};
Point (16) = {-10, 0, 50, 0.1};
Point (17) = {0, 10, 0, 20};
Point (18) = {0, -10, 0, 20};
Point (20) = {0, 10, 50, 20};
Point (21) = {0, -10, 50, 20};
Line (1) = {1, 2};
Line (2) = {2, 6};
Line (3) = {6, 5};
Line (4) = {5, 1};
Line (5) = {3, 7};
Line (6) = {7, 8};
Line (7) = {8, 4};
Line (8) = {4, 3};
Line (9) = {2, 3};
Line (10) = {6, 7};
Line (11) = {5, 8};
Line (12) = {4, 1};
Line (13) = {15, 14};
Line (14) = {20, 17};
Line (15) = {16, 13};
Line (16) = {21, 18};
Circle (17) = {15, 10, 20};
Circle (18) = {20, 10, 16};
Circle (19) = {16, 10, 21};
Circle (20) = {21, 10, 15};
Circle (21) = {14, 9, 17};
Circle (22) = {17, 9, 13};
Circle (23) = {13, 9, 18};
Circle (24) = {18, 9, 14};
Line Loop (26) = {24, -13, -20, 16};
Ruled Surface (26) = {26};
Line Loop (28) = {17, 14, -21, -13};
Ruled Surface (28) = {28};
Line Loop (30) = {18, 15, -22, -14};
Ruled Surface (30) = {30};
Line Loop (32) = {19, 16, -23, -15};
Ruled Surface (32) = {32};
Line Loop (34) = {2, 3, 4, 1};
Plane Surface (34) = {34};
Line Loop (36) = {11, 7, 12, -4};
Plane Surface (36) = {36};
Line Loop (38) = {6, 7, 8, 5};
Plane Surface (38) = {38};
Line Loop (40) = {10, -5, -9, 2};
Plane Surface (40) = {40};
Line Loop (43) = {9, -8, 12, 1, -23, -22, -21, -24};
Plane Surface (43) = {43};
Line Loop (46) = {3, 11, -6, -10, -20, -19, -18, -17};
Plane Surface (46) = {46};
Surface Loop (48) = {46, 34, 40, 38, 36, 43, 32, 26, 28, 30};
Volume (48) = {48};
Physical Volume (49) = {48};
View " polynomial " {
SL(0,0,0,0,-0.5,0){ 5.173046553042295E-01, 5.638691340390936E-01, 6.004998155675270E-01, 6.261146405868998E-01};
SL(0,-0.5,0,0,-1,0){ 6.260818770219654E-01, 6.399140282367684E-01, 6.413615211583964E-01, 6.301261213103514E-01};
SL(0,-1,0,0,-1.5,0){ 6.302250504970187E-01, 6.060686677975010E-01, 5.701157196362138E-01, 5.223287082218013E-01};
SL(0,-1.5,0,0,-2,0){ 5.220468454489777E-01, 4.619097321886671E-01, 3.959444519907308E-01, 3.472685701426845E-01};
SL(0,-2,0,0,-2.5,0){ 3.454988595177433E-01, 3.344073380157798E-01, 3.383707797330285E-01, 3.402121831749315E-01};
SL(0,-2.5,0,0,-3,0){ 3.404374729207975E-01, 3.375686708172767E-01, 3.380090600195914E-01, 3.391266809125149E-01};
SL(0,-3,0,0,-3.44444,0){ 3.384794540907117E-01, 3.384276283637216E-01, 3.383617387999355E-01, 3.383175120052098E-01};
SL(0,-3.44444,0,0,-3.88889,0){ 3.383177458443148E-01, 3.383152988150367E-01, 3.383443688880302E-01, 3.383791076697003E-01};
SL(0,-3.88889,0,0,-4.33333,0){ 3.383781971793124E-01, 3.383962803486706E-01, 3.383895052415099E-01, 3.383706656213244E-01};
SL(0,-4.33333,0,0,-4.77778,0){ 3.383715448710744E-01, 3.383558943054332E-01, 3.383551194455377E-01, 3.383640383771190E-01};
SL(0,-4.77778,0,0,-5.22222,0){ 3.383634104852095E-01, 3.383731784409487E-01, 3.383746989929187E-01, 3.383702929371438E-01};
SL(0,-5.22222,0,0,-5.66667,0){ 3.383706586240652E-01, 3.383654899838871E-01, 3.383649756827493E-01, 3.383674390630329E-01};
SL(0,-5.66667,0,0,-6.11111,0){ 3.383672945868560E-01, 3.383695025692560E-01, 3.383691988895699E-01, 3.383678630992867E-01};
SL(0,-6.11111,0,0,-6.55556,0){ 3.383678583646247E-01, 3.383673598910720E-01, 3.383678400704028E-01, 3.383683346390896E-01};
SL(0,-6.55556,0,0,-7,0){ 3.383683820830810E-01, 3.383682222013114E-01, 3.383679813395275E-01, 3.383679353121905E-01};
SL(0,-7,0,0.140462,-7.4323,0){ 2.255287265275449E-01, 2.255287959308526E-01, 2.255288140772565E-01, 2.255287926557931E-01};
SL(0.140462,-7.4323,0,0.280924,-7.8646,0){ 2.255287929567902E-01, 2.255287770507408E-01, 2.255287835682999E-01, 2.255287924151700E-01};
SL(0.280924,-7.8646,0,0.421386,-8.2969,0){ 2.255287934430935E-01, 2.255287898623048E-01, 2.255287864444454E-01, 2.255287869767378E-01};
SL(0.421386,-8.2969,0,0.561849,-8.72919,0){ 2.255287868809854E-01, 2.255287886814956E-01, 2.255287882834881E-01, 2.255287875531762E-01};
SL(0.561849,-8.72919,0,0.702311,-9.16149,0){ 2.255287874415387E-01, 2.255287878735588E-01, 2.255287880799025E-01, 2.255287879363836E-01};
SL(0.702311,-9.16149,0,0.842773,-9.59379,0){ 2.255287879175017E-01, 2.255287878769089E-01, 2.255287879488814E-01, 2.255287879615029E-01};
SL(0.842773,-9.59379,0,0.983235,-10.0261,0){ 2.255287879636657E-01, 2.255287879234281E-01, 2.255287879327842E-01, 2.255287879455365E-01};
SL(0.983235,-10.0261,0,1.1237,-10.4584,0){ 2.255287879476551E-01, 2.255287879356891E-01, 2.255287879350619E-01, 2.255287879391330E-01};
SL(1.1237,-10.4584,0,1.26416,-10.8907,0){ 2.255287879398892E-01, 2.255287879373607E-01, 2.255287879366433E-01, 2.255287879376169E-01};
SL(1.26416,-10.8907,0,1.40462,-11.323,0){ 2.255287879378342E-01, 2.255287879373766E-01, 2.255287879371327E-01, 2.255287879373607E-01};
SL(1.40462,-11.323,0,1.54508,-11.7553,0){ 2.255287879374190E-01, 2.255287879373483E-01, 2.255287879372511E-01, 2.255287879372671E-01};
SL(0,-7,0,-0.140462,-7.4323,0){ 2.255287265275449E-01, 2.255287959308526E-01, 2.255288140772565E-01, 2.255287926557931E-01};
SL(-0.140462,-7.4323,0,-0.280924,-7.8646,0){ 2.255287929567902E-01, 2.255287770507408E-01, 2.255287835682999E-01, 2.255287924151700E-01};
SL(-0.280924,-7.8646,0,-0.421386,-8.2969,0){ 2.255287934430935E-01, 2.255287898623048E-01, 2.255287864444454E-01, 2.255287869767378E-01};
SL(-0.421386,-8.2969,0,-0.561849,-8.72919,0){ 2.255287868809854E-01, 2.255287886814956E-01, 2.255287882834881E-01, 2.255287875531762E-01};
SL(-0.561849,-8.72919,0,-0.702311,-9.16149,0){ 2.255287874415387E-01, 2.255287878735588E-01, 2.255287880799025E-01, 2.255287879363836E-01};
SL(-0.702311,-9.16149,0,-0.842773,-9.59379,0){ 2.255287879175017E-01, 2.255287878769089E-01, 2.255287879488814E-01, 2.255287879615029E-01};
SL(-0.842773,-9.59379,0,-0.983235,-10.0261,0){ 2.255287879636657E-01, 2.255287879234281E-01, 2.255287879327842E-01, 2.255287879455365E-01};
SL(-0.983235,-10.0261,0,-1.1237,-10.4584,0){ 2.255287879476551E-01, 2.255287879356891E-01, 2.255287879350619E-01, 2.255287879391330E-01};
SL(-1.1237,-10.4584,0,-1.26416,-10.8907,0){ 2.255287879398892E-01, 2.255287879373607E-01, 2.255287879366433E-01, 2.255287879376169E-01};
SL(-1.26416,-10.8907,0,-1.40462,-11.323,0){ 2.255287879378342E-01, 2.255287879373766E-01, 2.255287879371327E-01, 2.255287879373607E-01};
SL(-1.40462,-11.323,0,-1.54508,-11.7553,0){ 2.255287879374190E-01, 2.255287879373483E-01, 2.255287879372511E-01, 2.255287879372671E-01};
SL(-1.54508,-11.7553,0,-1.68242,-12.178,0){ 2.820232776904312E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-1.68242,-12.178,0,-1.81977,-12.6007,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-1.81977,-12.6007,0,-1.95711,-13.0234,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-1.95711,-13.0234,0,-2.09445,-13.4461,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-2.09445,-13.4461,0,-2.23179,-13.8687,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-2.23179,-13.8687,0,-2.36913,-14.2914,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-2.36913,-14.2914,0,-2.50647,-14.7141,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-2.50647,-14.7141,0,-2.64381,-15.1368,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(-2.64381,-15.1368,0,-2.78115,-15.5595,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(1.54508,-11.7553,0,1.68242,-12.178,0){ 2.820232776904312E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(1.68242,-12.178,0,1.81977,-12.6007,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(1.81977,-12.6007,0,1.95711,-13.0234,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(1.95711,-13.0234,0,2.09445,-13.4461,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(2.09445,-13.4461,0,2.23179,-13.8687,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(2.23179,-13.8687,0,2.36913,-14.2914,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(2.36913,-14.2914,0,2.50647,-14.7141,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(2.50647,-14.7141,0,2.64381,-15.1368,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
SL(2.64381,-15.1368,0,2.78115,-15.5595,0){ 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01, 2.820232776903976E-01};
INTERPOLATION_SCHEME
{{-6.250000000000000E-02, 6.250000000000000E-02, 5.625000000000000E-01,-5.625000000000000E-01}
,{ 5.625000000000000E-01,-1.687500000000000E+00,-5.625000000000000E-01, 1.687500000000000E+00}
,{ 5.625000000000000E-01, 1.687500000000000E+00,-5.625000000000000E-01,-1.687500000000000E+00}
,{-6.250000000000000E-02,-6.250000000000000E-02, 5.625000000000000E-01, 5.625000000000000E-01}
}
{{0,0,0}
,{1,0,0}
,{2,0,0}
,{3,0,0}
};
};
Merge "deform.pos";
fact = 0.5; // deformation factor
PostProcessing.Format = 3; // save view as STL
For t In {0 : View[0].NbTimeStep - 1}
Plugin(Warp).iView = 0;
Plugin(Warp).dView = 0;
Plugin(Warp).TimeStep = t;
Plugin(Warp).Factor = fact;
Plugin(Warp).Run;
Save View[0] Sprintf("deform%g.stl", t);
// reset
Plugin(Warp).Factor = -fact;
Plugin(Warp).Run;
EndFor
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment