Jump to content

Recommended Posts

Hi dear support Forum!

 

I want to automate the process of converting *.fem to *.h3d files for the FlexBody option in MotionView. In tutorials the FlexPrep interface in MotionView is presented, which is ok but not feasible for large quantities of files.

 

Therefore I want to automate the flexprep step, which also should be possible according to: 

https://altairhyperworks.com/hwhelp/Altair/2017/help/mv/mv.htm?flexprep_mv.htm

 

From the help section I've interpreted the command line to be:

"C:/Program Files/Altair/2017/io/translators/bin/win64/flexprep" "C:/Temp/mbd/Body1.fem" "C:/Temp/mbd/Body1.h3d" CB +17079+17080 10 -STRESS -STRAIN

 

Which is identical to what the user interface in MotionView calls in the file:

C:\Program Files\Altair\2017\utility\mbd\custom_wizards\flexpreptk.tcl

 

The conversion works perfectly in MotionView:

******************************************************************************
**                                                                          **
**                    Altair Flexible Body Preprocessor                     **
**                                                                          **
**                                                                          **
**        Flexible Body Modal Synthesis and Data Translation Software       **
**                      from Altair Engineering, Inc.                       **
**                                                                          **
******************************************************************************
** Executable flexprep 2017.2.0.16
** Time of Build 17:27:47
** Date of Build Jul 25 2017
** Copyright (c) 1996-2017 Altair Engineering, Inc.  All Rights Reserved.
Contains trade secrets of Altair Engineering, Inc.   Copyright notice does not imply publication.
Decompilation or disassembly of this software is strictly prohibited.


******************************************************************************

**INVOKING <CRAIG-BAMPTON MODES> PROCEDURE**
 (ORTHOGONALIZED FIXED-INTERFACE EIGEN AND CONSTRAINT MODES)

 RUNNING FLEXPREP USING OPTISTRUCT ...
******************************************************************************
** Time of build : 15:07:05                        
** Date of build : 06/16/17                        
** Time of build : 15:17:26                        
** Date of build : 06/16/17                        
** Time of build : 15:08:18                        
** Date of build : 06/16/17                        

Total Translation Warnings and Errors:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Warnings: 0
Errors: 0

 ************************************************************************
 **                                                                    **
 **                                                                    **
 **                         OptiStruct 2017.2                          **
 **                                                                    **
 **             Advanced Engineering Analysis, Design and              **
 **        Optimization Software from Altair Engineering, Inc.         **
 **                                                                    **
 **                                                                    **
 **             Windows 10  (Build 9200)  DESKTOP-4115EKL              **
 **          4 CPU:  Intel(R) Core(TM) i7-3540M CPU @ 3.00GHz          **
 **                     3804 MB RAM,  9346 MB swap                     **
 **                                                                    **
 ** Build tag: 0872785_9433172_Ce64RBW8UH14M:131848-2  4000            **
 ************************************************************************
 **  COPYRIGHT (C) 1996-2017                 Altair Engineering, Inc.  **
 ** All Rights Reserved.  Copyright notice does not imply publication. **
 **         Contains trade secrets of Altair Engineering, Inc.         **
 ** Decompilation or disassembly of this software strictly prohibited. **
 ************************************************************************
 
  
 *** OptiStruct defaults set from:
   install config file: C:\Program Files\Altair\2017\/hwsolvers/optistruct.cfg.
  
  Much more mumbu jumbo down here.....

 

 

But when I run the line in command prompt I get the following error:

******************************************************************************
**                                                                          **
**                    Altair Flexible Body Preprocessor                     **
**                                                                          **
**                                                                          **
**        Flexible Body Modal Synthesis and Data Translation Software       **
**                      from Altair Engineering, Inc.                       **
**                                                                          **
******************************************************************************
** Executable flexprep 2017.2.0.16
** Time of Build 17:27:47
** Date of Build Jul 25 2017
** Copyright (c) 1996-2017 Altair Engineering, Inc.  All Rights Reserved.
Contains trade secrets of Altair Engineering, Inc.   Copyright notice does not imply publication.
Decompilation or disassembly of this software is strictly prohibited.


******************************************************************************

**INVOKING <CRAIG-BAMPTON MODES> PROCEDURE**
 (ORTHOGONALIZED FIXED-INTERFACE EIGEN AND CONSTRAINT MODES)

 RUNNING FLEXPREP USING OPTISTRUCT ...
******************************************************************************
'optistruct.bat' is not recognized as an internal or external command,
operable program or batch file.
'"optistruct.bat"' is not recognized as an internal or external command,
operable program or batch file.

Total Translation Warnings and Errors:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Warnings: 0
Errors: 0

 

Therefore I changed the working directory in the command prompt to the location of the optistruct.bat, but that yielded this error and the optistruct part doesn't start:

******************************************************************************
**                                                                          **
**                    Altair Flexible Body Preprocessor                     **
**                                                                          **
**                                                                          **
**        Flexible Body Modal Synthesis and Data Translation Software       **
**                      from Altair Engineering, Inc.                       **
**                                                                          **
******************************************************************************
** Executable flexprep 2017.2.0.16
** Time of Build 17:27:47
** Date of Build Jul 25 2017
** Copyright (c) 1996-2017 Altair Engineering, Inc.  All Rights Reserved.
Contains trade secrets of Altair Engineering, Inc.   Copyright notice does not imply publication.
Decompilation or disassembly of this software is strictly prohibited.


******************************************************************************

**INVOKING <CRAIG-BAMPTON MODES> PROCEDURE**
 (ORTHOGONALIZED FIXED-INTERFACE EIGEN AND CONSTRAINT MODES)

 RUNNING FLEXPREP USING OPTISTRUCT ...
******************************************************************************

Total Translation Warnings and Errors:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Warnings: 0
Errors: 0

 

There must be some sort of environment variables missing for flexprep to run perfectly.

Hence the question: Is there a workaround?

 

Thank you in advance and best regards!

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
You are posting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...