|
[Sponsors] |
June 1, 2019, 02:59 |
Parameterization of sizes in Pointwise
|
#1 |
New Member
Join Date: Nov 2018
Posts: 14
Rep Power: 7 |
Good morning experts,
I'm trying do deal with the parameterization of a domain in Pointwise writing journal. I'm kind of new on this language, I checked on internet but I was not able to find something appropriate for my case of interest. Is there anyone so kind so tell me how to solve the following problem? I want to parameterize a line. I have a connector starting from {-8 -3 -3} and ending in {-8 -3 3} as follow pw::Application setUndoMaximumLevels 5 pw::Application reset pw::Application markUndoLevel {Journal Reset} pw::Application clearModified set _TMP(mode_1) [pw::Application begin Create] set _TMP(PW_1) [pw::SegmentSpline create] $_TMP(PW_1) addPoint {-8 -3 -3} $_TMP(PW_1) addPoint {-8 -3 3} set _CN(1) [pw::Connector create] $_CN(1) addSegment $_TMP(PW_1) unset _TMP(PW_1) $_CN(1) calculateDimension $_TMP(mode_1) end unset _TMP(mode_1) pw::Application markUndoLevel {Create 2 Point Connector} And I want to parameterize have something like pw::Application setUndoMaximumLevels 5 pw::Application reset pw::Application markUndoLevel {Journal Reset} pw::Application clearModified set R 5.029 set _TMP(mode_1) [pw::Application begin Create] set _TMP(PW_1) [pw::SegmentSpline create] $_TMP(PW_1) addPoint {-8 -3 -3}*$R $_TMP(PW_1) addPoint {-8 -3 3}*$R set _CN(1) [pw::Connector create] $_CN(1) addSegment $_TMP(PW_1) unset _TMP(PW_1) $_CN(1) calculateDimension $_TMP(mode_1) end unset _TMP(mode_1) pw::Application markUndoLevel {Create 2 Point Connector} I've also tried with pw::Application setUndoMaximumLevels 5 pw::Application reset pw::Application markUndoLevel {Journal Reset} pw::Application clearModified set R 5.029 set _TMP(mode_1) [pw::Application begin Create] set _TMP(PW_1) [pw::SegmentSpline create] $_TMP(PW_1) addPoint {-8*$R -3*$R -3*$R} $_TMP(PW_1) addPoint {-8*$R -3*$R 3*$R} set _CN(1) [pw::Connector create] $_CN(1) addSegment $_TMP(PW_1) unset _TMP(PW_1) $_CN(1) calculateDimension $_TMP(mode_1) end unset _TMP(mode_1) pw::Application markUndoLevel {Create 2 Point Connector} but still nothing Is it possible to do it? any advice will be appreciated. Thank you |
|
June 2, 2019, 03:42 |
|
#2 | ||
Senior Member
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14 |
You need to use the vector3 utility functions.
https://www.pointwise.com/glyph/file....Vector3.scale Something like: Quote:
In Tcl, {8 3 3} is a list of three values. To scale each item in the list involves some verbose code. One way would be: Quote:
http://tmml.sourceforge.net/doc/tcl/ To understand Tcl, you REALLY need to understand the difference between [], {}, and "". Good luck. Last edited by dgarlisch; June 3, 2019 at 10:35. |
|||
June 3, 2019, 03:19 |
|
#3 |
New Member
Join Date: Nov 2018
Posts: 14
Rep Power: 7 |
Thank you really much,
I'm gonna try. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
hybrid mesh created by pointwise fails mesh check in fluent due to left-handed faces | Hamid.de | Pointwise & Gridgen | 4 | November 9, 2016 11:20 |
[Commercial meshers] Pointwise to Foam - cyclic BC points order | Pj. | OpenFOAM Meshing & Mesh Conversion | 5 | August 14, 2016 04:47 |
[Commercial meshers] Native OpenFOAM interface in Pointwise | cnsidero | OpenFOAM Meshing & Mesh Conversion | 41 | May 20, 2012 18:30 |
[ICEM] Help with fixing imported IGES model | siw | ANSYS Meshing & Geometry | 24 | August 24, 2010 11:22 |
Native OpenFOAM interface in Pointwise | Chris Sideroff | Main CFD Forum | 0 | January 16, 2009 12:37 |