|
[Sponsors] |
[BladeModeler] Scripting BladeGen using BGI file: LE control points on hub and shroud |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 10, 2018, 07:41 |
Scripting BladeGen using BGI file: LE control points on hub and shroud
|
#1 |
Member
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9 |
Hi everyone,
I would like to use BladeGen for a design optimisation study of centrifugal pumps. Using the GUI initially, I can export a BGI file, define variables, and use the batch command to create new geometries from the BGI file. However, there is a problem when defining the control points of the LE. Namely, in the GUI, the end control points are such that they always lie on the hub and shroud curves. You can even define a length fraction that specifies how far along the streamwise direction of the hub and shroud curves the LE control points are. However, in the BGI file, the control points of the LE are not constrained such that the end points lie on the hub and shroud surfaces. Instead, these points are strictly defined by their Z-R values. Code:
Begin LeadingEdgeCurve New Segment CurveType=Bezier UpstreamControl=Free Begin Data ( -7.669881059,23.35438893 ) ( -15.79710000,30.48810000 ) ( -25.22529274,37.83793911 ) ( -32.58647974,44.66386003 ) End Data DownstreamControl=Free End Segment End LeadingEdgeCurve Thanks for any help or advice you can give! James |
|
October 12, 2018, 09:20 |
|
#2 |
Member
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9 |
No one?
I've managed to come up with a workaround by creating a simple Python script. The function takes in the hub or shroud Bezier curve control points and a length fraction and creates a Bezier curve. This Bezier curve is then discretised into a user-defined number of points. The function then outputs these points (as well as the LE point) to be used for a spline representation of the hub or shroud. The workaround is very imperfect, but it gets the job done (particularly if the number of discretised points is large). However, I would still be very interested if anyone else has any advice or tips. James |
|
May 19, 2020, 00:38 |
|
#3 |
New Member
Mert
Join Date: Sep 2016
Posts: 10
Rep Power: 10 |
Dear James,
I need to change .bgi file parameters to create new blade geometries, like youre doing. But, i dont know how i will use this .bgi file while creating turbogrid mesh? Can I use WB journal file? I will be very happy if you can share details about BladeGen scripting. I would be more happy if you can share even simple script to explain a problem. Best regards, Mert |
|
May 19, 2020, 18:13 |
|
#4 |
Member
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9 |
Hi Mert,
I'm sure you can use a WB journal if you would like. However, the way I did it was by using the 'BladeBatch.exe' which is located in the folder Code:
PathToAnsys\aisol\BladeModeler\BladeGen To create the TurboGrid files, just add the '-TG' flag with the directory you would like to place the files into. For example, the whole command may look like Code:
PathToAnsys\aisol\BladeModeler\BladeGen\BladeGen.exe yourFile.bgi -TG yourDirectory James |
|
May 20, 2020, 00:07 |
|
#5 | |
New Member
Mert
Join Date: Sep 2016
Posts: 10
Rep Power: 10 |
Dear James,
Thank you so much for your explanation in detail. Best regards Quote:
|
||
November 9, 2020, 15:08 |
ANSYS optimization using Bladegen and Turbogrid
|
#6 |
New Member
Joao Mattos
Join Date: Jul 2020
Posts: 5
Rep Power: 6 |
Dear James and Met,
I´ve been trying to work on a similar project performing turbomachinery optimization, but I´m very new to this windows batch mode, do you have any resources where I can learn about it? Basically, I want to create an automated procedure to achieve a specific performance from turbomachinery. It's a type of pump, where I perform the CFD simulation using CFX, then I get a result. Then I change the pump diameter for example and get another result, so I want to do it iteratively until a reach the required result. The iterative process would be: Bladegen -> Turbogrid -> CFX -> meet the criteria? if not do it again. |
|
November 11, 2020, 05:50 |
|
#7 |
Member
James Gross
Join Date: Nov 2017
Posts: 77
Rep Power: 9 |
Hi Joao,
Unfortunately, it seems that the documentation for batch capabilities in ANSYS is a little lacking. However, the main thing to note is that you will need to create template files for each step (i.e. a BGI file for BladeGen, a TSE file file for TurboGrid, a PRE file and a CCL for CFX Pre. You can then call all of these processes in batch mode using the ANSYS batch commands from your favourite programming language (I have used Python, but you can use anything you want). For BladeGen, the batch command is as above. For TurboGrid, it looks something like: Code:
PathToAnsys\TurboGrid\bin\cfxtg.exe -batch yourFile.tse Code:
PathToAnsys\CFX\bin\cfx5pre.exe -batch yourFile.pre Code:
PathToAnsys\CFX\bin\cfx5solve.exe -batch yourFile.def The following link shows how the CFX portion of this process can be done in Perl: https://www.google.com/url?sa=t&rct=...yTmeloY1MXvEQI Hope this helps! James |
|
November 11, 2020, 09:13 |
|
#8 |
New Member
Joao Mattos
Join Date: Jul 2020
Posts: 5
Rep Power: 6 |
Thanks a lot, James!!
I´ll go through it! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[TurboGrid] Hub and shroud offset of export points of an axial stator of a turbine | Ahmed Saeed Mansour | ANSYS Meshing & Geometry | 1 | May 27, 2020 10:53 |
Out File does not show Imbalance in % | Mmaragann | CFX | 5 | January 20, 2017 11:20 |
Define Hub and Shroud for imported CAD file | Daniel DA | Fidelity CFD | 7 | May 18, 2016 09:03 |
How is Hub to Shroud Line drawn in CFX by default? | arunraj | CFX | 0 | October 14, 2011 08:36 |
boundary conditions for hub and shroud | Jasmine | CFX | 3 | March 24, 2009 21:05 |