DIANA TNO FEA - Python - MATLAB
DIANA TNO FEA - Python - MATLAB
(OP)
Hello!
I have a model in DIANA TNO, and I was wondering if perhaps exist a way to execute the software from Python (more information click here) or MATLAB?
The final idea is to be able to create projects / create and run analysis / process the results from MATLAB and/or Python.
Honestly I haven't found helpful information about it, any contribution will be welcome.
Thanks in advance!
I have a model in DIANA TNO, and I was wondering if perhaps exist a way to execute the software from Python (more information click here) or MATLAB?
The final idea is to be able to create projects / create and run analysis / process the results from MATLAB and/or Python.
Honestly I haven't found helpful information about it, any contribution will be welcome.
Thanks in advance!





RE: DIANA TNO FEA - Python - MATLAB
TTFN
I can do absolutely anything. I'm an expert!
FAQ731-376: Eng-Tips.com Forum Policies forum1529: Translation Assistance for Engineers
RE: DIANA TNO FEA - Python - MATLAB
I doubt that the intention was actually to do the analysis in Python or Matlab, but if it was, the Python Scipy package has compiled solvers that are very fast, so slow performance of interpreted code is not an issue, at least in Python.
That said, I don't know if DIANA has an API. A quick search didn't come up with anything.
Doug Jenkins
Interactive Design Services
http://newtonexcelbach.wordpress.com/
RE: DIANA TNO FEA - Python - MATLAB
Cheers
Greg Locock
New here? Try reading these, they might help FAQ731-376: Eng-Tips.com Forum Policies http://eng-tips.com/market.cfm?
RE: DIANA TNO FEA - Python - MATLAB
import subprocess job = subprocess.Popen("<insert diana command here>", stdout=subprocess.PIPE, stderr=subprocess.PIPE) output, err = job.communicate()Matlab can use an OS command with "system(<command>)" and I think "!<insert command here>" (you'll have to read the docs, my matlab is rusty). As for pre/post processing inputs and outputs you'll have to write your own code to read or write files. If you want to take it a step further, you can pretty easily write your own global optimization code with the Scipy stack.
RE: DIANA TNO FEA - Python - MATLAB
1. DIANA TNO is a software for perform finite element analysis. The model, the analysis settings and the results can be saved in many type of files like: .txt .dat .dcf, etc. Files that could be manipulated by an external software (MATLAB/Python).
2. In the documentation that I've found in DIANA's manual, I found that it's possible to use script commands with Python scripting language. And even though I'm not an expert in Python, I know that it could be possible to run some few specific commands just for execute the analysis, and obtain the results (in a .txt file).
3. Due I know how to use MATLAB, I pretend to make the post-processing with it, and just using Python for execute the analysis if I don't manage to do everything from MATLAB, otherwise I wouldn't use Python in all this process.
As you can see, MATLAB (and just if is necessary, Python) will be use for manipulate the Input and Output of DIANA TNO.
Many thanks in advance for your gentile reply and any type of contribution will be welcome, I'm sure that I'll help a lot in this process.
L
RE: DIANA TNO FEA - Python - MATLAB
I found the answer, it is presented here.
Best,
L