CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > Fidelity CFD

ZR Effect in Autogrid5 as a script

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 30, 2018, 09:10
Default ZR Effect in Autogrid5 as a script
  #1
New Member
 
PLD
Join Date: Jun 2017
Location: Braunschweig, Germany
Posts: 13
Rep Power: 8
parthiv1991 is on a distinguished road
Hello Users,

I am trying to implement a small cavity in a turbomachinery application in Numeca Autogrid. I have successfully implemented the cavity as a ZR Effect manually using the GUI. But I want to implement it in a python script file.

I have tried it using the scripts generated when doing it manually and simply copied and pasted it into an existing python script. Everything works fine except that the script does not generate any zr effect and it does not execute the zr effect part. Can anyone please help me with this?


Here's the script based on the advanced tutorial 10.

Code:
# the previous lines are same as in the tutorial, the next lines are for thr Rotor Row(2) generation
#.....................................................................................
# control the grid points
row(2).blade(1).set_b2b_default_topology_grid_point_number_streamwise_inlet(9)
row(2).blade(1).set_b2b_default_topology_grid_point_number_azimutal_inlet_down(13)
row(2).blade(1).set_b2b_default_topology_grid_point_number_streamwise_blade_upper_side(61)

# switch on and control the optimization
row(2).set_row_optimization_steps(150)

# Cavity Creation
row(2).select()

row(2).a5_new_ZR_effect()

zr_techno_effect_start_edit_mode()

parametric_polyline_3_solid_rotating = new_parametric_polyline("parametric_polyline_3_solid_rotating")
generation_error_message()
parametric_polyline_3_solid_rotating.insert_point(1,CurvePointNorm(Curve("ni_original_hub#0"),0.63208298968232))
parametric_polyline_3_solid_rotating.move_point(1,CurvePointNorm(Curve("ni_original_hub#0"),0.63208298968232))
parametric_polyline_3_solid_rotating.insert_point(2,Point(0.115389087626934,0.245,0))
parametric_polyline_3_solid_rotating.move_point(2,Point(0.115379087626934,0.243274033069611,0))
parametric_polyline_3_solid_rotating.insert_point(3,Point(0.115389087626934,0.243274033069611,0))
parametric_polyline_3_solid_rotating.remove_point(3)
parametric_polyline_4_solid = new_parametric_polyline("parametric_polyline_4_solid")
parametric_polyline_4_solid.insert_point(1,CurvePointNorm(parametric_polyline_3_solid_rotating,1))
parametric_polyline_4_solid.move_point(1,CurvePointNorm(parametric_polyline_3_solid_rotating,1))
parametric_polyline_4_solid.insert_point(2,Point(0.115389087626934,0.243274033069611,0))
parametric_polyline_4_solid.move_point(2,Point(0.116006687283516,0.243274033069611,0))
parametric_polyline_4_solid.insert_point(3,Point(0.116016687283516,0.243274033069611,0))
parametric_polyline_4_solid.move_point(3,CurvePointNorm(Curve("ni_original_hub#0"),0.634811683841372))
parametric_polyline_4_solid.insert_point(4,Point(0.116016687283516,0.245,0))
parametric_polyline_4_solid.remove_point(4)
zr_techno_effect_set_boundary_point(0,CurvePointNorm(parametric_polyline_4_solid,0.156145948858037))
zr_techno_effect_reset_boundary_point(1)
zr_techno_effect_set_boundary_point(0,CurvePointNorm(parametric_polyline_4_solid,0.156145948858037))
zr_techno_effect_reset_boundary_point(1)
zr_techno_effect_delete_blocks()
new_block_face(Point(0.115692887455229,0.243587832724464,0),CurvePointNorm(parametric_polyline_4_solid,0.133116841394939),CurvePointNorm(parametric_polyline_4_solid,0),CurvePointNorm(parametric_polyline_3_solid_rotating,0.817971014489298),0,0,3,0)
new_block_face(Point(0.115692887455229,0.243587832724464,0),CurvePointNorm(parametric_polyline_4_solid,0.40014829882754),CurvePointNorm(parametric_polyline_4_solid,0.266658976255374),CurvePointNorm(parametric_polyline_4_solid,0.133116841399667),0,0,3,0)
new_block_face(CurvePointNorm(Curve("ni_original_hub#0"),0.633445160769692),Point(0.115692887455229,0.243587832724464,0),CurvePointNorm(parametric_polyline_4_solid,0.400148298818682),CurvePointNorm(Curve("ni_original_hub#0"),0.634811683841373),0,0,3,0)
new_block_face(CurvePointNorm(Curve("ni_original_hub#0"),0.633445160769692),Point(0.115692887455229,0.243587832724464,0),CurvePointNorm(parametric_polyline_3_solid_rotating,0.817971014489298),CurvePointNorm(Curve("ni_original_hub#0"),0.63208298968232),0,0,3,0)

zr_techno_effect_compute_default_mesh()

zr_techno_effect_stop_edit_mode()


# generate B2B
unselect_all()
row(2).select()
a5_generate_b2b()

# the next lines are also same as in the tutorial script ........
parthiv1991 is offline   Reply With Quote

Reply

Tags
autogrid5, zr effect

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
[Workbench] Run ICEM Script in Workbench Script MIZOR ANSYS Meshing & Geometry 9 April 4, 2018 07:45
Shell script to handle Segmentation faults arising from execFlowFunctionObjects pruthvi1991 OpenFOAM Post-Processing 0 February 22, 2015 14:20
[ICEM] Problem with ICEM Script Meshing asal ANSYS Meshing & Geometry 2 March 23, 2013 19:11
CentFOAM Python Script Installation: Error socon009 OpenFOAM Installation 2 May 26, 2012 09:36
Can 'shock waves' occur in viscous fluid flows? diaw Main CFD Forum 104 February 16, 2006 05:44


All times are GMT -4. The time now is 10:50.