-
-
July 24, 2024 at 8:45 am
Noura Mansour
SubscriberHow can i link between ansys workbench and matlabÂ
Â
And if i want to define that the spring being compressed at zero position ( ex. Force 20 N at 0 deformation)
-
July 24, 2024 at 1:48 pm
mashetty
SubscriberI am not an expert in ansys workbench simulations, but i have done some ansys mechanical simulaiton using matlab. This is the work flow, that i have followed:1.Generate input.dat in ANSYS Workbench. Export your input file as input.dat using ansys mechancial.Â2.Convert input.dat to input.txt.(Example) orÂRename input.dat to input.txt.Â3.Prepare MATLAB Script to Run ANSYS in Batch Modecreate a beam.m file in matlab using the command linebeam.m file start%%%%  Very very important% %important is to use the same directory of the inpt file we are working ,%that input file and output file, current beam.m and current matlab directory everthing should in same directoryÂ!"C:\Program Files\ANSYS Inc\v241\ansys\bin\winx64\ANSYS241.exe" -b -i beam.txt -o beamout.txtbeam.m file endsÂfirst is the path to the ANSYS executable file. It specifies the location of the ANSYS program that you want to run.Â-b indicates the batch mode of ansys-i indicates the input file and then write the name of the input file.-o indicates the output file and then write the name of the output file.Â4. Now run the matlab file and simulation runs in batch mode and output and result files are genearted, which can again be opened in ansys mechanical for visualization.Â5.Modify Input Parameters:To change the force input, material properties, or boundary conditions, edit the relevant lines in the input.txt file.After making the necessary changes, rerun the simulation using the beam.m script in MATLAB.ÂI hope this helps.-
July 26, 2024 at 8:47 pm
Noura Mansour
SubscriberAnd if i want to define a load at zero deformation of a nonlinear spring what should i do ?
-
-
Viewing 1 reply thread
- The topic ‘how to link between ansys workbench and matlab’ is closed to new replies.
Ansys Innovation Space
Trending discussions
Top Contributors
-
2122
-
918
-
599
-
591
-
483
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.