|
[Sponsors] |
May 21, 2014, 08:54 |
reactangular farfield
|
#1 |
Member
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11 |
Hi,
I am trying to create a rectangular farfield around an airfoil - like in the T-Rex Meshing Tutorial. Is there any possibility to create this farfield easier without creating every connector in x/y direction? I think it is quite time intensive to create one by one. Thank you very much. Vanessa |
|
May 21, 2014, 10:24 |
|
#2 |
Senior Member
|
Hi,
Execute the following script. The center is (0,0,0). Please change the file extension to .glf after download and go to the "Execute" under the "Script" top menu, and select the script for execution. You could set the dimension by editing the A and B. PDP Code:
# # ------------------------------------------------ # Please Indicate horizontal side length. set A 48. # Please Indicate vertical side length. set B 40.5 # ------------------------------------------------- set x[list [expr {-1*$A/2}] [expr {$A/2}] [expr {$A/2}] [expr {-1*$A/2}] [expr {-1*$A/2}]] set y[list [expr {-1*$B/2}] [expr {-1*$B/2}] [expr {$B/2}] [expr {$B/2}] [expr {-1*$B/2}]] set z 0.0 for {set i 0} {$i <= 3} {set i [expr {$i+1}]} { set linePts($i) [pw::SegmentSpline create] $linePts($i) addPoint[list [lindex $x $i] [lindex $y $i] $z] $linePts($i) addPoint[list [lindex $x [expr int($i+1)]] [lindex $y [expr int($i+1)]] $z] set lineCon($i) [pw::Connector create] $lineCon($i) addSegment $linePts($i) } |
|
May 21, 2014, 10:57 |
|
#3 |
Member
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11 |
Thanks a lot )
Is the original "x/y/z axis" (blue color in PW V17.1 R4) or the "axis" (red one) ?? |
|
May 21, 2014, 11:43 |
|
#5 |
Member
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11 |
sorry, my question was wrong...
so the center of the script is on the 0/0/0 on the origin axis, isn't it? |
|
May 22, 2014, 08:25 |
|
#7 | |
Senior Member
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22 |
Quote:
https://github.com/pointwise/ShapeWizard |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
empty patch as farfield condition | nimasam | OpenFOAM Bugs | 4 | April 5, 2014 16:47 |
Farfield Boundary Problems | Tam | FLUENT | 0 | January 19, 2013 09:45 |
Pressure farfield vs Velocity Inlet BC | DarrenC | FLUENT | 1 | September 16, 2009 02:23 |
Farfield BC assignment | BM | Main CFD Forum | 0 | February 4, 2008 13:56 |
Farfield BC: vortex correction for lifting bodies | zonexo | Main CFD Forum | 2 | September 6, 2005 02:10 |