CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Mesh Generation & Pre-Processing Software > Pointwise & Gridgen

Parameterization of sizes in Pointwise

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 1, 2019, 02:59
Default Parameterization of sizes in Pointwise
  #1
New Member
 
Join Date: Nov 2018
Posts: 14
Rep Power: 7
pianaCFD is on a distinguished road
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
pianaCFD is offline   Reply With Quote

Old   June 2, 2019, 03:42
Default
  #2
Senior Member
 
David Garlisch
Join Date: Jan 2013
Location: Fidelity Pointwise, Cadence Design Systems (Fort Worth, Texas Office)
Posts: 307
Rep Power: 14
dgarlisch is on a distinguished road
You need to use the vector3 utility functions.
https://www.pointwise.com/glyph/file....Vector3.scale

Something like:

Quote:
set pt [pwu::Vector3 scale {-8 -3 -3} $R]
Glyph uses the Tcl language. Tcl does NOT support calculations as you may be used to in other languages.

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:
set pt [ list [expr {-8 * $R}] [expr {-3 * $R}] [expr {-3 * $R}]]
Please read up on Tcl if you are not already familiar with it.
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.
dgarlisch is offline   Reply With Quote

Old   June 3, 2019, 03:19
Default
  #3
New Member
 
Join Date: Nov 2018
Posts: 14
Rep Power: 7
pianaCFD is on a distinguished road
Thank you really much,
I'm gonna try.
pianaCFD is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 02:33.