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

ANSA for CFD mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 7, 2013, 04:32
Default ANSA script
  #21
New Member
 
SriGanesh
Join Date: Mar 2013
Location: Bangalore
Posts: 6
Rep Power: 13
SriGanesh Doshaim is on a distinguished road
Dear Vangelis,


That was an informative reply.


Thanks for your quick reply.




SriGanesh Doshaim.
SriGanesh Doshaim is offline   Reply With Quote

Old   March 11, 2013, 10:03
Default ANSA script
  #22
New Member
 
SriGanesh
Join Date: Mar 2013
Location: Bangalore
Posts: 6
Rep Power: 13
SriGanesh Doshaim is on a distinguished road
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
SriGanesh Doshaim is offline   Reply With Quote

Old   March 11, 2013, 11:59
Default
  #23
Senior Member
 
Vangelis Skaperdas
Join Date: Mar 2009
Location: Thessaloniki, Greece
Posts: 287
Rep Power: 21
vangelis is on a distinguished road
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
vangelis is offline   Reply With Quote

Old   March 20, 2013, 11:39
Default Ansa scripting aligning nodes to a curve
  #24
New Member
 
Suhas Konanur
Join Date: Mar 2013
Posts: 2
Rep Power: 0
Suhas Konanur is on a distinguished road
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
Suhas Konanur 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
[ICEM] Using Surface Mesh from ANSA for Fluent Sim tommymoose ANSYS Meshing & Geometry 15 March 3, 2016 18:29
[ICEM] Negative volume error in hybrid mesh siw ANSYS Meshing & Geometry 4 September 3, 2014 06:25
3D Hybrid Mesh Errors DarrenC ANSYS Meshing & Geometry 11 August 5, 2013 07:42
[snappyHexMesh] snappyHexMesh won't work - zeros everywhere! sc298 OpenFOAM Meshing & Mesh Conversion 2 March 27, 2011 22:11
do I need to mesh in ANSA if using Harpoon/t-grid? boris Main CFD Forum 1 October 13, 2008 06:01


All times are GMT -4. The time now is 16:27.