CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ANSA (https://www.cfd-online.com/Forums/ansa/)
-   -   ANSA for CFD mesh (https://www.cfd-online.com/Forums/ansa/16081-ansa-cfd-mesh.html)

SriGanesh Doshaim March 7, 2013 03:32

ANSA script
 
Dear Vangelis,


That was an informative reply.


Thanks for your quick reply.




SriGanesh Doshaim.

SriGanesh Doshaim March 11, 2013 09:03

ANSA script
 
Dear Vangelis,

We want to run set of checks from
D.UTIL>CHECK>

1.D.CHECK_FREE
2.NASTRAN_CHECK_DEPENDENCY_NASTRAN...etc...

Is there any direct way that we could write a script for grouping those CHECKS through ANSA script engine in v13.1.4?

Thanks & Regards,
SriGanesh Doshaim

vangelis March 11, 2013 10:59

In v13.1.5 you can use the script functions

def main()
{
free_nodes = CheckFree("visible");
}
If VISIBLE FREE nodes are found, it returns a matrix containing their pointers,
otherwise 0.

for checking Dependencies you need to use a newer version, v13.2.x
where there is a script function
p, li { white-space: pre-wrap; } CheckAndFixRigidDependencies

Suhas Konanur March 20, 2013 10:39

Ansa scripting aligning nodes to a curve
 
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. :)

Regards

Suhas


All times are GMT -4. The time now is 08:14.