![]() # make the output file be the input file plus timestamp Returns the number of Ansys errors encountered in the run Using the number of processors in: numprocessors Using APDL executable invoked by: ansyscall I don’t show it here, but one can change the arguments to the APDL script by having the Python program edit either the body of the APDL script or its input files.ĭef runAPDL(ansyscall,numprocessors,workingdir,scriptFilename): To generate the appropriate options and paths for your machine, set up your solve using the ANSYS launcher and then display the command that it would invoke from “Tools –> Display Command Line.” Several command line options for ANSYS are hard-coded into this script. The example below includes a Python function that runs an APDL script and then checks the output file for errors. We often want to incorporate a finite-element solve into a larger program for design automation or optimization.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |