|
[Sponsors] | |||||
|
|
|
#1 |
|
New Member
Ganesh
Join Date: Jan 2013
Posts: 4
Rep Power: 2 ![]() |
HI All,
It will be great if anybody tell how to do automation using Ansa scripting. |
|
|
|
|
|
|
|
|
#2 |
|
New Member
Ganesh
Join Date: Jan 2013
Posts: 4
Rep Power: 2 ![]() |
HI ,
It will be great if any of our members answer to my question. |
|
|
|
|
|
|
|
|
#3 |
|
New Member
Maries
Join Date: Mar 2010
Location: Chennai
Posts: 7
Rep Power: 5 ![]() |
You can use scripting by their own scripting language which is like c++.
In ANSA - 14 onwards it is supporting python along with their own scripting language. You can use their scripting manual available in documentation to do the scripting. |
|
|
|
|
|
|
|
|
#4 |
|
New Member
Ganesh
Join Date: Jan 2013
Posts: 4
Rep Power: 2 ![]() |
HI rmaries,
Thanks for your reply,can you tell whether we can create our own scripts like hypermesh does.As i came to know there some standard scripts that only can be used.Looking forward your support on this. byee Ganeshram |
|
|
|
|
|
|
|
|
#5 |
|
New Member
Maries
Join Date: Mar 2010
Location: Chennai
Posts: 7
Rep Power: 5 ![]() |
Yes You can create your own script. I don't know hypermesh so i can't able to tell about hypermesh scripting.
|
|
|
|
|
|
|
|
|
#6 |
|
New Member
Ganesh
Join Date: Jan 2013
Posts: 4
Rep Power: 2 ![]() |
Hi,
Thanks for reply,can you share some example or it is possible to have some personla discussion on this over phone.Let me know are you fine on this. |
|
|
|
|
|
|
|
|
#7 |
|
New Member
Suhas Konanur
Join Date: Mar 2013
Posts: 2
Rep Power: 0 ![]() |
Hello members,
I created a curve with 2 points across a meshed plate. Then I selected the nearest nodes to the curve and aligned it with the curve. I tried to automate the process using Ansa script. The program asks the user to select nodes on the mesh. It captures the nodes in a matrix, extract the coordinates in an array and then with CreateCurve function a curve is drawn. For the alignment, I captured the NearestShell (function with same name) to these nodes and then the corresponding nodes in a matrix. These nodes were then aligned to the curve. However the results are satisfactory only when the nodes selected by the user are closely spaced. Is there are a function or an algorithm which searches for the nearest nodes to a curve?? Thanking you all for your suggestions. ![]() Suhas |
|
|
|
|
|
|
|
|
#8 |
|
Senior Member
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 115
Rep Power: 7 ![]() |
Dear Suhas
Can you give us a broaded view of what actually want to do with ANSA? Are you sure that it is something that cannot already be done and you try scripting? Is it something that you want to do automatically without user interaction? |
|
|
|
|
|
|
|
|
#9 |
|
New Member
Pierre-Arthur Fortin
Join Date: Apr 2013
Posts: 3
Rep Power: 2 ![]() |
Dear members,
I am a fresh begginer in ANSA scripting. I am currently trying to script the creation of a aerdoynamic part with ANSA. My script will take a set of parameters (heigh, length etc...) and output a fully created part. I need to create curves which follow a determined angle at the start and at the end. Until now I did this "by hand" by creating 2 straight curves following the desired angles and by enforcing a tangent condition between my final curves and these 2 curves at the start and at the end. This is easy with the GUI but I can't find a function that would do the same operation within my script. The function CreateCurve is not satisfactory as it cannot enforce tangent conditions. I hope I was clear enough. Does any one know of a way to solve my problem? Thank you for all your suggestions. Regards, Pierre |
|
|
|
|
|
|
|
|
#10 | |
|
New Member
Maries
Join Date: Mar 2010
Location: Chennai
Posts: 7
Rep Power: 5 ![]() |
Hi,
Can you give an example of what you are doing. If possible with screen shots. Which version of ANSA you are using. Because I can able to create python scripts which can be used only ANSA14x versions. Regards Maries Quote:
|
||
|
|
|
||
|
|
|
#11 |
|
New Member
Pierre-Arthur Fortin
Join Date: Apr 2013
Posts: 3
Rep Power: 2 ![]() |
Hi,
I work with ANSA 13.2.3. Unfortunately, I cannont give you screenshots as this project is still confidential. To make it short I juste need to find a script function that would do do same as TOPO>CURVES>NEW in the GUI in order to enforce tangent conditions. Any ideas? Regards, Pierre |
|
|
|
|
|
|
|
|
#12 | |
|
New Member
Maries
Join Date: Mar 2010
Location: Chennai
Posts: 7
Rep Power: 5 ![]() |
Hi Pierre,
According to my knowledge there is no direct script for function you told. You can contact ansa@beta-cae.gr for further details. If you find the script for that, post it here Regards Maries CreateCurve, NAME: CreateCurve - Definition of 3D-curves. SYNOPSIS: CreateCurve(integer total,matrix x,matrix y,matrix z) DESCRIPTION: Creates smooth 3D-curve that passes from a number of points. (total) is the number and (x),(y),(z) are the coordinates of the points. RETURN: Returns the pointer to the created 3D-curve. EXAMPLE: def main() { x[0] = 1; x[1] = 1.1; x[2] = 2; y[0] = 1.5; y[1] = 3.2; y[2] = 2.7; z[0] = 1.8; z[1] = 3; z[2] = 2.6; CreateCurve(3,x,y,z); } ----------------------------------------------------------------- Quote:
Last edited by rmaries; April 18, 2013 at 00:28. Reason: Add some more information |
||
|
|
|
||
|
|
|
#13 |
|
New Member
Pierre-Arthur Fortin
Join Date: Apr 2013
Posts: 3
Rep Power: 2 ![]() |
Hi Maries,
I ended up contacting BETA CAE. Turns out what I was looking for cannot be done with ANSA v13.x. Something close enough can be done with ANSA v14.x using MORPHING. Unfortunately, I do not have access to v14.x so I ended up creating my parametrized geometry with CATIA V5 and then importing it to ANSA for meshing. Thank you for your help anyway. Regards, Pierre |
|
|
|
|
|
|
|
|
#14 |
|
New Member
Maries
Join Date: Mar 2010
Location: Chennai
Posts: 7
Rep Power: 5 ![]() |
Thanks Pierre
|
|
|
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| CentFOAM Python Script Installation: Error | socon009 | OpenFOAM Installation | 2 | May 26, 2012 09:36 |
| [ICEM] Script: problems with face names | Maweil | ANSYS Meshing & Geometry | 2 | October 25, 2011 21:32 |
| ANSA hexblock mesh to OpenFOAM | yosuu | OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... | 7 | October 22, 2011 06:18 |
| Output deck from ANSA for OpenFOAM use | Kattie | OpenFOAM Meshing & Mesh Conversion | 10 | February 2, 2011 07:46 |
| Perl script for intialisation | pratik mehta | CFX | 2 | September 10, 2008 03:09 |