Control ANSYS with MATLAB
Control ANSYS with MATLAB
(OP)
MATLAB 7.0 contains a C language compiler, but there is an additional fee to obtain a FORTRAN compiler. From the documentation notes for both software packages, Compaq Visual Fortran 6.6 is the only one that matches. However, is there still a way to externally control ANSYS by writing the APDL code within a C language program?





RE: Control ANSYS with MATLAB
I do wnat to know how to control ansys with matlab. I want to cann matlab from ansys letus say iteravative manner. if u know, please do know me. thanks in advance
nagesh
RE: Control ANSYS with MATLAB
Just for clarification, when you say "...control Matlab from Ansys" do you mean that you want to write an APDL program that controls Matlab?? If so, I am not sure if you can do this. Please provide a little more clarification in your next response.
However, what I do think you can do, and maybe this is what you are saying, is to write an external fortran or C program that first calls Ansys to execute a job. After completing the job, that fortran/C program then calls Matlab and delivers Ansys output data into Matlab to be used in further calculation. As I am still grappling with the Fortran-to-Ansys problem, I cannot be of great help yet on this part. However, Matlab allows one to control it with external fortran or C-code using the Mex-function capability. Look up "Mex-Function" in the Matlab online help. Unless you have seen it before, it may possibly take you a while to understand, but C/fortran-to-Matlab is completely possible.
Also, if you are thinking of trying to program for C or Fortran-to-Ansys you will need to look at the M-lab & Ansys documentation to see what compilers are compatible. I read in another thread that obtaining the exact compiler is a MUST. Although I have not proved this statement for myself I have chosen to take it as gospel and spend some money instead of wasting time trying to figure out if this is true. Hope this helps.
Tecknique