Jump to content
mzafar

Importing customized results into HV via csv file

Recommended Posts

Hello,

 

I am trying to import a csv-file containing Element-ID's with the corresponding custom results. 

 

I have done a little research and got to know the generic ASCII reader for which I have to create the csv file with a specific header. 

 

My csv file looks like this:

ALTAIR ASCII FILE
$DELIMITER = ,
$TITLE =  STATIC ANALYSIS
$SUBCASE_ID = 1 Unit_force
$BINDING = ELEMENT
$COLUMN_INFO = ENTITY_ID
$RESULT_TYPE = My_Result(s)
1, 26
2, 12
3, 10
4, 11
5, 25
6, 9
7, 28
8, 27
9 7
10, 8
11, 31
12, 15
13, 32
14, 14
15, 21
16, 13
17, 33
18, 34
19, 29
20, 3
21, 2
22, 36

 

When creating the csv-file, I change the file name ending from ".csv" to ".hwascii".

 

In HV I try to load the model via a fem-file and the results file via the created hwascii-file (see above).

 

Unfortunately, this doesnt work as I always get the following errors: 

"INFO" "20:15:13" "Error: missing reader or invalid 'path' attribute for resource (model): "C:\Users\Mortasa\Documents\Test_LS_Model\LS_Model_15_15_solverdeck_mit_zusatz.fem"" 
"INFO" "20:15:13" "Error: exception occured (Model Adapter: AddInstruction failed)." 
"INFO" "20:15:13" "Error: invalid resource (model) attribute for 'add' instruction (model)." 
"INFO" "20:15:13" "Error: failed to load resource 'model' using reader 'ResultModule XML Reader'." 
"INFO" "20:15:13" "Error: can't compile analysis object (resource : model)." 
"INFO" "20:15:13" "Error: can't compile analysis object (resource : Resource_1)." 
"INFO" "20:15:13" "Error: missing reader or invalid 'path' attribute for resource (Resource_1): "C:\Users\Mortasa\Documents\Test_LS_Model\a.hwascii"" 

"INFO" "20:15:13" "Error creating result math analysis [General]" 
 

My fem-file looks like this: 

$$
$$ Optistruct Input Deck Generated by HyperMesh Version  : 2017.2.0.16
$$ Generated using HyperMesh-Optistruct Template Version : edu2017.2
$$
$$   Template:  optistruct
$$
$$
$$ optistruct
$
ELFORCE = ALL
$$------------------------------------------------------------------------------$
$$                      Case Control Cards                                      $
$$------------------------------------------------------------------------------$
$
$HMNAME LOADSTEP               1"Unit_force"       1
$
SUBCASE       1
  LABEL Unit_force
ANALYSIS STATICS
  SPC =        2
  LOAD =        1
$$--------------------------------------------------------------
$$ HYPERMESH TAGS 
$$--------------------------------------------------------------
$$BEGIN TAGS
$$END TAGS
$
BEGIN BULK
$$
$$  Stacking Information for Ply-Based Composite Definition
$$

PARAM,K6ROT,100.
PARAM,POST,-1      
$$
$$  GRID Data
$$
GRID           1        -25.0   0.0     -50.0   
GRID           2        -25.0   0.0     -45.0   
GRID           3        -25.0   0.0     -40.0   
GRID           4        -25.0   0.0     -35.0   
GRID           5        -25.0   0.0     -30.0   
GRID           6        -25.0   0.0     -25.0   
GRID           7        -20.0   0.0     -25.0   
GRID           8        -15.0   0.0     -25.0   
GRID           9        -10.0   0.0     -25.0   

......

$HMNAME BEAMSECTCOLS           1"BEAMSECTCOL_1"
$HMNAME BEAMSECTS
$              1       1"CBAR_Prop"
$              1       0      24       0     1.0     1.0     0.0     0.0     0.0
$            0.0       1
$HMNAME BEAMSECTS  RESULTS_AREA 19.63   
$HMNAME BEAMSECTS  RESULTS_CENTROID     0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_IUSER        0.0     0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_ICENTROID    0.0     0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_IPRINCIPAL   0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_THETA        0.0     
$HMNAME BEAMSECTS  RESULTS_S    0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_Z    0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_SP   0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_ZP   0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_RADIUSG      0.0     
$HMNAME BEAMSECTS  RESULTS_COORDEXT     0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_COORDEXTP    0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_SHEARCENTER  0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_SHEARCENTERP 0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_ELASTICCENTER0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_SHEARDEFORM  0.0     0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_PRINCIPALSHEAR       0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_SHEARANGLE   0.0     
$HMNAME BEAMSECTS  RESULTS_SHEARSTIFF   0.0     0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_J    0.0     
$HMNAME BEAMSECTS  RESULTS_GAMMA0.0     
$HMNAME BEAMSECTS  RESULTS_EMT  0.0     
$HMNAME BEAMSECTS  RESULTS_PMT  0.0     
$HMNAME BEAMSECTS  RESULTS_TORSIONCOEFF 0.0     0.0     
$HMNAME BEAMSECTS  RESULTS_NUMBEROFCELLS       0
$HMNAME BEAMSECTS  RESULTS_GLOBALCENTROID       0.0     0.0     0.0     
$HMNAME BEAMSECTS  END
$$
$$ RBE2 Elements - Multiple dependent nodes
$$
RBE2         601     683  123456      37      38      39      90      91
+             92      93      94      95      96     181     182     184
+            185     187     188     189     190     193     194     195
+            223     224     225     226     311     312     314     315
+            317     318     319     320        
$
$HMMOVE        5
$            601
$$
$$  CBAR Elements
$$
CBAR         602       2      62       61.0     2.368-140.0          BGG
$
$HMMOVE        4
$            602
$$
$$  CQUAD4 Elements
$$
CQUAD4         1       1      22      25      26      21
CQUAD4         2       1      21      26      12      13
CQUAD4         3       1      25       9      10      26
CQUAD4         4       1      26      10      11      12
CQUAD4         5       1      23      27      25      22
CQUAD4         6       1      27       8       9      25
CQUAD4         7       1       4       5      28      24
CQUAD4         8       1      24      28      27      23
CQUAD4         9       1       5       6       7      28
CQUAD4        10       1      28       7       8      27
CQUAD4        11       1      18      29      31      17
CQUAD4        12       1      17      31      15      16
CQUAD4        13       1      29      30      32      31

.......

$
$HMMOVE        2
$              1THRU         600
$$
$$------------------------------------------------------------------------------$
$$    HyperMesh name and color information for generic components               $
$$------------------------------------------------------------------------------$
$HMNAME COMP                   1"2D_Surface" 
$HWCOLOR COMP                  1       4
$
$HMNAME COMP                   2"2D_Mesh"        1 "LS_Prop" 4 
$HWCOLOR COMP                  2       5
$
$HMNAME COMP                   4"CBAR"        2 "CBAR_Prop" 3 
$HWCOLOR COMP                  4      17
$
$HMNAME COMP                   5"RBE2" 
$HWCOLOR COMP                  5      25
$

$

$
$$
$$  PSHELL Data
$$
$HMNAME PROP                   1"LS_Prop" 4
$HWCOLOR PROP                  1      21
PSHELL         1       11.5            1               1        0.0     
$$
$$
$$
$$  PBAR Data
$$
$HMNAME PROP                   2"CBAR_Prop" 3
$HWCOLOR PROP                  2      24
$HMBEAMSEC PBARASSOC           2       1
PBAR           2       119.63   0.0     0.0     0.0     0.0             
$$
$$  MAT1 Data
$$
$HMNAME MAT                    1"Steel" "MAT1"
$HWCOLOR MAT                   1      20
MAT1           1210000.0        0.3     7.82-9                          
$$
$$------------------------------------------------------------------------------$
$$ HyperMesh Commands for loadcollectors name and color information $
$$------------------------------------------------------------------------------$
$HMNAME LOADCOL                1"Force"
$HWCOLOR LOADCOL               1       6
$$
$HMNAME LOADCOL                2"Constraints"
$HWCOLOR LOADCOL               2       7
$$
$$
$$  SPC Data
$$
SPC            2     378  123456     0.0
SPC            2     379  123456     0.0
SPC            2     380  123456     0.0
SPC            2     381  123456     0.0
SPC            2     382  123456     0.0
SPC            2     383  123456     0.0
SPC            2     384  123456     0.0
SPC            2     385  123456     0.0
SPC            2     430  123456     0.0
SPC            2     431  123456     0.0
SPC            2     444  123456     0.0
SPC            2     445  123456     0.0
SPC            2     446  123456     0.0
SPC            2     447  123456     0.0
SPC            2     448  123456     0.0
SPC            2     449  123456     0.0
SPC            2     450  123456     0.0
SPC            2     451  123456     0.0
SPC            2     528  123456     0.0
SPC            2     529  123456     0.0

........

$$
$$  FORCE Data
$$
FORCE          1     683       01.0     1.0     0.0     0.0     
ENDDATA
$$
$$------------------------------------------------------------------------------$$
$$        Data Definition for AutoDV                                            $$
$$------------------------------------------------------------------------------$$
$$
$$-----------------------------------------------------------------------------$$
$$        Design Variables Card for Control Perturbations                      $$
$$-----------------------------------------------------------------------------$$
$$
$$------------------------------------------------------------------------------$
$$        Domain Element Definitions                                            $
$$------------------------------------------------------------------------------$
$$
$$------------------------------------------------------------------------------$$
$$            Control Perturbation                                              $$
$$------------------------------------------------------------------------------$$

ALTDOCTAG "Q\5jUX^O3QoPMS0;2p2MI0DfFjM:gmml1Zb3@hkE:IBC:KF7cY;cEGYerq0fRQIBfEgMPcBYemflZIQAI@fQYNn78?90o[p6IQmg@UrL9T`];^R9NL\53XXX"
ADI0.1.0 2019-08-26T20:18:55 1of1 HM11.0
ENDDOCTAG

 

It has to be said that I am not able selecting any reader options via the button in the loading panel of HV, so I am not really sure, if the generic ASCII reader automatically comes into action when the user tries to load a hwascii-file via the load results panel or if the generic ASCII reader isnt available for usage with the student edition.

 

I am using the HyperWorks student edition 2017.2.

 

Hopefully you guys can help me out.

 

Kind 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...