Getting pretension load value.
Dear All,
I wants to get pretension load value along with node details on which load is applied.
Can we get it directly by using tcl\tk code.
@tinh Please suggest if any api avalailable.
Best Regards,
Vikas Kumar
Answers
-
Hi
Give a node id, find attached load by *findmark
Then get load value (please check dataname in hm reference help I don't remember)
0 -
@tinh can you help me with dataname.
I am unable to understand syntax. How to use that.
Pls give one example here for above problem in free time.
How we can get card edit value for all material group member using tcl\tk.
Regards,
Vikas Kumar
0 -
Hi all,
I need help regarding getting card edit values as shown in fig 1 by using tcl\tk.
Fig 1
So it will display all information as shown in Fig 2. All i need is, this value in a list or anything.
<?xml version="1.0" encoding="UTF-8"?>
Fig 2
Another help i require to get 'XRef Entities' as shown in FIg 3 so it will display again a reference like Fig 4. I need to apply again Xref Entities on same. So i need reference list in a variable.
Reference list is marked by red color. I need to follow this process only.
@tinh or @Imoto please provide tcl\tk scripts for above cases.
I am using abaqus profile (standard 3D) in HM..
Best Regards,
Vikas Kumar
0 -
Altair Forum User said:
@tinh can you help me with dataname.
I am unable to understand syntax. How to use that.
Pls give one example here for above problem in free time.
How we can get card edit value for all material group member using tcl\tk.
Regards,
Vikas Kumar
Dataname for force value is magnitude
hm_getentityvalue loads $loadid magnitude 0 -byid
For card editor fields, use attribute name instead of dataname:
hm_attributelist mats AL name -byname
0 -
Altair Forum User said:
Hi all,
I need help regarding getting card edit values as shown in fig 1 by using tcl\tk.
<?xml version="1.0" encoding="UTF-8"?>
Fig 1
So it will display all information as shown in Fig 2. All i need is, this value in a list or anything.
<?xml version="1.0" encoding="UTF-8"?>
Fig 2
Another help i require to get 'XRef Entities' as shown in FIg 3 so it will display again a reference like Fig 4. I need to apply again Xref Entities on same. So i need reference list in a variable.
Reference list is marked by red color. I need to follow this process only.
<?xml version="1.0" encoding="UTF-8"?>
@tinh or @Imoto please provide tcl\tk scripts for above cases.
I am using abaqus profile (standard 3D) in HM..
Best Regards,
Vikas Kumar
@tinh Suggest for XRef
0 -
Hi Vikas
data names and attribute names have unique type
for data names, search their type in reference help
for attribute names, get their type by hm_attributetype, hm_attributetypename
if the type is 'entity' => that data/attrib is an X-ref
using hm_attributeentity... to retrieve X-ref data
0 -
Hi @tinh,
I am using this code
foreach attr [ hm_attributelist mats 'AL' name -byname] {
set attrValue [ hm_attributevalue mats 'AL' $attr -byname ];
set x [hm_getvalue mats id=1 dataname=$attr]
set y [hm_attributetypename $attr]
puts 'attribute: $attr attrVal: $attrValue val: $x attributeTypename: $y'
}Marked line always returns string, integer but not entity at all.
I am using abaqus profile.
For particularly x-ref i am not getting any idea.
Output:-
attribute: ABAQUS_MATERIAL attrVal: 0 val: 0 attributeTypename: integer
attribute: Num_Comments attrVal: 3 val: 3 attributeTypename: integer
attribute: Comments attrVal: 3 val: ===================================== { AL} ===================================== attributeTypename: arrayofstring
attribute: CommentEnumField attrVal: 1 val: 1 attributeTypename: integer
attribute: UseElasticCard attrVal: 1 val: 1 attributeTypename: integer
attribute: ElasticTypeEnumField attrVal: 1 val: 1 attributeTypename: integer
attribute: ELASTICDATACARDS attrVal: 1 val: 1 attributeTypename: integer
attribute: Young attrVal: 1 val: 70610.4 attributeTypename: arrayofreal
attribute: Poiss attrVal: 1 val: 0.33 attributeTypename: arrayofreal
attribute: TempE1 attrVal: 1 val: 0 attributeTypename: arrayofreal
attribute: Elastic_Num_Comments attrVal: 1 val: 1 attributeTypename: integer
attribute: Elastic_Comments attrVal: 1 val: -------------------------- attributeTypename: arrayofstring
attribute: UseExpansionCard attrVal: 1 val: 1 attributeTypename: integer
attribute: Thetanot attrVal: 20 val: 20 attributeTypename: real
attribute: Expansion_UserEnumField attrVal: 3 val: 3 attributeTypename: integer
attribute: ExpansionTypeEnumField attrVal: 1 val: 1 attributeTypename: integer
attribute: Expansion_OptionalEnumField attrVal: 1 val: 1 attributeTypename: integer
attribute: EXPANSIONDATACARDS attrVal: 17 val: 17 attributeTypename: integer
attribute: Alpha attrVal: 17 val: 2.17e-005 2.2e-005 2.23e-005 2.27e-005 2.31e-005 2.33e-005 2.36e-005 2.38e-005 2.4e-005 2.42e-005 2.44e-005 2.46e-005 2.48e-005 2.5e-005 2.52e-005 2.54e-005 2.56e-005 attributeTypename: arrayofreal
attribute: TempAlpha attrVal: 17 val: 0 20 40 60 80 100 120 140 160 180 200 220 240 260 280 300 320 attributeTypename: arrayofreal
attribute: Exp_DependExist attrVal: 0 val: 0 attributeTypename: integer
attribute: Exp_Depend attrVal: 0 val: 0 attributeTypename: integer
attribute: Expansion_Num_Comments attrVal: 1 val: 1 attributeTypename: integer
attribute: Expansion_Comments attrVal: 1 val: -------------------------- attributeTypename: arrayofstring
attribute: UseConductivityCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseSpecificHeatCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseDensityCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseDampingCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseDielectricCard attrVal: 0 val: 0 attributeTypename: integer
attribute: Elastic_Depend_Exist attrVal: 0 val: 0 attributeTypename: integer
attribute: Elastic_Moduli_Exist attrVal: 0 val: 0 attributeTypename: integer
attribute: FailStress attrVal: 0 val: 0 attributeTypename: integer
attribute: FailStrain attrVal: 0 val: 0 attributeTypename: integer
attribute: UseHyperelasticCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseHypoelasticCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseHyperfoamCard attrVal: 0 val: 0 attributeTypename: integer
attribute: MullinsEffect attrVal: 0 val: 0 attributeTypename: integer
attribute: UsePiezoelectricCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseViscoelasticCard attrVal: 0 val: 0 attributeTypename: integer
attribute: CAST_IRON_PLASTICITY attrVal: 0 val: 0 attributeTypename: integer
attribute: UsePlasticCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UsePotentialCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseCrushableFoamCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseCrushableFoamHardCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseRateDependentMatCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseCreepCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseAcousticCard attrVal: 0 val: 0 attributeTypename: integer
attribute: User_Output_Variable attrVal: 0 val: 0 attributeTypename: integer
attribute: UseUserMaterialCard attrVal: 0 val: 0 attributeTypename: integer
attribute: UseDepVarCard attrVal: 0 val: 0 attributeTypename: integer
attribute: DEFORMATION_PLASTICITY attrVal: 0 val: 0 attributeTypename: integer
attribute: MatDamageInitiation attrVal: 0 val: 0 attributeTypename: integer
attribute: Mat_UnsupportedCards attrVal: 0 val: 0 attributeTypename: integerThanks,
Vikas Kumar
0 -
Hi
Which attribute is entity?
0 -
Hi @tinh
Here not even single attribute type name is coming as entity.
But i want this details as mentioned before also (Refer Below image).
Data marked with red rectangle i needed.
Manual process i have shown in image.
Thanks
0 -
Try
*createmark props 1 'by material name' AL
You get 2 props, easily get their names and ids and types
0 -
Hi @tinh
In this case it is working. Because here we know that both is a property entity.
But in case of any other entity attached with this material in that case we need to find out.
Can we find out all attached entity along with this material name in one shot.
Thanks for your help.
0 -
you can make a loop through all hm entities and check if severals attach to that material. it is a simple task.
0