TAGGED: ansys-spaceclaim, composite, python-scripting, spaceclaim
-
-
May 18, 2021 at 9:56 pm
prheintz
SubscriberI have a script within Spaceclaim that develops a unidirectional composite matrix with fibers. I also have an external MATLAB function that randomly generates origin locations for the fibers and I'm wondering if there is way to take these points from MATLAB (or a txt file) and have them inputted into the python script within SpaceClaim to update fiber positions on my geometry. Any ways of interfacing spaceclaim scripts with programs outside of ANSYS would be of interest to me.
I can include pictures of my current geometry and manual inputs if it's helpful.
Thanks,
Pierce
May 19, 2021 at 5:58 pmAniket
Forum ModeratorYou can import point curve text as explained in the following link:
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v211/en/spaceclaim/Discovery/user_manual/importing_and_exporting.html
You can import the point cloud and then should be able to use generated points in your script further.
Also, did you look at Material designer:
https://ansyshelp.ansys.com/account/Secured?returnurl=/Views/Secured/corp/v211/en/acp_md/acp_md.html
-Aniket
How to access Ansys help links
Guidelines for Posting on Ansys Learning Forum
June 4, 2021 at 12:14 amprheintz
SubscriberAniket
Your suggestions pointed me in the right direction. I actually discovered the code to directly read a CSV file with (x,y,z) coordinates into spaceclaim via the scripting tool.
And yes, I have been using Material designer as well to do some fiber modeling.
Thank you for the suggestions!
-Pierce
July 27, 2023 at 11:06 pmFranc Shaw
SubscriberHi Pierce,
Could you please proivde a example code to read csv variable value into SpaceCalim by using csvReader?
Thanks a lot!July 27, 2023 at 11:37 pmJuly 27, 2023 at 11:46 pmViewing 5 reply threads- The topic ‘How to input outside values into a SpaceClaim script?’ is closed to new replies.
Ansys Innovation SpaceTrending discussionsTop Contributors-
3492
-
1057
-
1051
-
965
-
942
Top Rated Tags© 2025 Copyright ANSYS, Inc. All rights reserved.
Ansys does not support the usage of unauthorized Ansys software. Please visit www.ansys.com to obtain an official distribution.
-