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

reactangular farfield

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 21, 2014, 08:54
Red face reactangular farfield
  #1
Member
 
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11
v_herw is on a distinguished road
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
v_herw is offline   Reply With Quote

Old   May 21, 2014, 10:24
Default
  #2
Senior Member
 
Pay D.
Join Date: Aug 2011
Posts: 166
Blog Entries: 1
Rep Power: 14
pdp.aero is on a distinguished road
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)
}
Attached Files
File Type: txt rect_con.txt (892 Bytes, 1 views)
pdp.aero is offline   Reply With Quote

Old   May 21, 2014, 10:57
Default
  #3
Member
 
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11
v_herw is on a distinguished road
Thanks a lot )

Is the original "x/y/z axis" (blue color in PW V17.1 R4) or the "axis" (red one) ??
v_herw is offline   Reply With Quote

Old   May 21, 2014, 11:18
Default
  #4
Senior Member
 
Pay D.
Join Date: Aug 2011
Posts: 166
Blog Entries: 1
Rep Power: 14
pdp.aero is on a distinguished road
The red axis is the rotational axis, you could change it by holding the Ctrl+Shift+Left Mouse and dragging it over the mesh.
The origin of the coordinate axis is indicated by blue color.
pdp.aero is offline   Reply With Quote

Old   May 21, 2014, 11:43
Default
  #5
Member
 
Vanessa Herwig
Join Date: May 2014
Posts: 36
Rep Power: 11
v_herw is on a distinguished road
sorry, my question was wrong...

so the center of the script is on the 0/0/0 on the origin axis, isn't it?
v_herw is offline   Reply With Quote

Old   May 21, 2014, 15:11
Default
  #6
Senior Member
 
Pay D.
Join Date: Aug 2011
Posts: 166
Blog Entries: 1
Rep Power: 14
pdp.aero is on a distinguished road
Yes, the center of rectangle is (0,0,0), if you wish to move the rectangle, you need to use the Edit -> Transform -> Translate...

Good Luck,
Payam
pdp.aero is offline   Reply With Quote

Old   May 22, 2014, 08:25
Default
  #7
Senior Member
 
Chris Sideroff
Join Date: Mar 2009
Location: Ottawa, ON, CAN
Posts: 434
Rep Power: 22
cnsidero is on a distinguished road
Quote:
Originally Posted by v_herw View Post
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
Here's a script to make pretty much any shape you want - geometry or mesh:

https://github.com/pointwise/ShapeWizard
cnsidero 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
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


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