Effacer les filtres
Effacer les filtres

The filename, directory name, or volume label syntax is incorrect - Matlab

31 vues (au cours des 30 derniers jours)
SAMUEL AYINDE
SAMUEL AYINDE le 12 Mai 2017
Commenté : Adeline War le 20 Avr 2022
Please, help me: I want to optimize a model. I am using Matlab for the optimization, Hypermesh as a pre-processor for my model and Abaqus as my FEA solver. I want to control all the operations in Matlab. I don't want to open Hypermesh and Abaqus. I have found a way around Abaqus. But I am having a challenge with Hypermesh. Directly from Matlab command, I want to call Hypermesh to execute my TCL script and output Abaqus input file. I want to run this process for many iterations by changing my mesh size in TCL script, thereby generating Abaqus input files of different mesh sizes. 
This is my Matlab script for Hypermesh:
clear all;
clc;
hypermesh_bin='C:\Program Files\Altair\2017\hm\bin\win64\';
    %enter the directory for the hypermesh executible
    cd(hypermesh_bin);
  run Hypermesh  
 dos ('C:\Program Files\Altair\2017\hm\bin\win64\hmopengl.exe&')
% run .tcl file (the name of my tcl file is comm)
    dos_command = ['hmbatch-tcl' , 'C:\Program Files\Altair\2017\hm\bin\win64\comm.tcl'];
 dos (dos_command)
I am getting this error:
ans =
     0
The filename, directory name, or volume label syntax is incorrect. 
ans =
     1
Please, help me: kindly tell me what I am doing wrong.
Also, in order for us to have more discussion, I will appreciate it if you can send me an email, if you have worked with hypermesh directly from Matlab or you know how to do it.
Thank you.
  3 commentaires
Voss
Voss le 15 Mar 2022
Use double-quotes, rather than two single-quotes
system('"C:\Program Files\Altair\2017\hwsolvers\scripts\optistruct.bat" "C:\Users\e-tru\Documents\beam_maker_altair_44.fem"')
Adeline War
Adeline War le 20 Avr 2022
After succesfully doing batch mode between matlab and optistruct, I would like to know how to change the material parameters by using read, write and also export data in .fem file?

Connectez-vous pour commenter.

Réponses (1)

Steven Lord
Steven Lord le 12 Mai 2017

Catégories

En savoir plus sur Embedded Coder dans Help Center et File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by