News:

SMF - Just Installed!

Main Menu

Recent posts

#21
Scripting and Python / Re: Extract node set coordinat...
Last post by Wahid - April 04, 2021, 12:28:17 PM
Thank you for te reply Mr. Barkey.

I found the solution, the name of the set must be noted in upper case ['SET-1']. knowing that in the model abaqus CAE, it is defined like that ['Set-1']

Thanks
Wahid
#22
Questions and Answers about ABAQUS / Re: ABAQUS license check
Last post by Mark Barkey - April 02, 2021, 06:33:12 PM
C:\temp>abaqus licensing

FLEXnet Licensing Utilities:
abq2020 licensing - Copyright (c) 1989-2015 Flexera Software LLC. All Rights Reserved.
usage:  abq2020 licensing lmborrow -status
        abq2020 licensing lmborrow -purge
        abq2020 licensing lmborrow -purge -status
        abq2020 licensing lmborrow -clear
        abq2020 licensing lmborrow {all|vendor} dd-mmm-yyyy:[time]
        abq2020 licensing lmborrow -return [-c licfile] [-d display_name] [-fqdn] [-vendor name] feature
        abq2020 licensing lmdiag [-c licfile] [-n]
        abq2020 licensing lmdown [-c licfile] [-q] [-all] [-vendor name] [-force] [-help]
        abq2020 licensing lmhostid [-ptype (VMW|HPV|PHY|AMZN|LMB|VM)] [-ether|-internet (v4|v6)|-user|-n|
                -string|-display|-hostname|-hostdomain|-vsn|-flexid|-long|
                -utf8|-uuid|-eip|-ami|-iid|-genid]
        abq2020 licensing lminstall [-i infile] [-o outfile]
                [-overfmt {2, 3, 4, 5, 5.1, 6, 7.1, 8}]
                [-odecimal] [-maxlen n]
        abq2020 licensing lmnewlog [-c licfile] vendor new-file [-secondary], or
        abq2020 licensing lmnewlog [-c licfile] feature new-file [-secondary]
        abq2020 licensing lmpath -status
        abq2020 licensing lmpath -override {all | vendor } path
        abq2020 licensing lmpath -add {all | vendor } path
        abq2020 licensing lmremove [-c licfile] feature user host display
        abq2020 licensing lmremove [-c licfile] -h feature host port handle
        abq2020 licensing lmremove [-c licfile] [-tsborrow <client_host>] | [-tsborrowstat]
        abq2020 licensing lmreread [-c licfile] [-vendor name] [-all]
        abq2020 licensing lmswitchr [-c licfile] vendor new-file, or
        abq2020 licensing lmswitchr [-c licfile] feature new-file
        abq2020 licensing lmstat [-c licfile] [lmstat-args]
        abq2020 licensing lmswitch [-c licfile] vendor new-file, or
        abq2020 licensing lmswitch [-c licfile] feature new-file
        abq2020 licensing lmver flexlm_binary
        abq2020 licensing lmvminfo [-long]
        abq2020 licensing -help (prints this message)
        abq2020 licensing utility_name -help  (display detailed usage information)

        abq2020 licensing r (prints maximum license availablity report)
        abq2020 licensing ru (prints current license usage report)
        abq2020 licensing usage [-help] (prints help for license usage history reporting)
        abq2020 licensing usage [usage-args] (prints license usage history report)
        abq2020 licensing v (prints FLEXlm utilities version)
        abq2020 licensing lmtools (starts FLEXlm license administration GUI)

DSLS Licensing Utilities:
        abq2020 licensing dslsstat [-server host:port] [-customer id] (queries a DSLS license server)
        abq2020 licensing reporttool (generates license usage report from a DSLS or Flexnet log file)
#23
Scripting and Python / Re: Extract node set coordinat...
Last post by Mark Barkey - April 02, 2021, 06:29:57 PM
make sure that the node set is being written to the ODB
check the name of the set and name of the part

otherwise, I don't know what the issue could be from that information.

Thanks,
MEB
#24
Scripting and Python / Extract node set coordinates i...
Last post by Wahid - April 02, 2021, 04:41:04 PM
Hello,
I would like to extract the Node set coordinates using a python script. i tried with this method using an odb file :

import sys
from odbAccess import *
from abaqus import *
from abaqusConstants import *
import __main__

odb = openOdb('C:/Temp/Job-1.odb')
set = odb.rootAssembly.instances['part-1'].nodeSets['Set-1']

numNodes = len(set.nodes)
partlabel=[];
partxcord=[];
partycord=[];
partzcord=[];
for curNode in a.nodes:
    partlabel.append(curNode.label)
    partxcord.append(curNode.coordinates[0])
    partycord.append(curNode.coordinates[1])
    partzcord.append(curNode.coordinates[2])

The error displayed is : keyerror : Set-1.
knowing that when I defined the same syntax for the coordinates of the instance nodes, it works correctly.

myInstance = odb.rootAssembly.instances['part-1']
#25
Scripting and Python / Re: Apply non-uniform heat flu...
Last post by Wahid - April 02, 2021, 01:02:53 PM
Thank you Mr. Barkey for your reply
#26
Scripting and Python / Re: Apply non-uniform heat flu...
Last post by Mark Barkey - March 28, 2021, 08:17:44 PM
Hi Wahid,

It should be very similar to the nodal temperature writer.  However, the heat flux is probably a vector (represented as a tuple).

MEB
#27
Scripting and Python / Apply non-uniform heat flux at...
Last post by Wahid - March 28, 2021, 12:39:46 PM
Hello,

I am working on a heat transfer model on abaqus,  and I would like to apply a non-uniform heat flux at nodes.

Knowing that each node had a heat flux different from others.

Could you please help me to write a python script which allows to introduce the heat flux in each node.

Thank you
#28
Scripting and Python / Re: Define initial temperature...
Last post by Wahid - March 12, 2021, 01:12:36 PM
Thank you Mr. Barkey
#29
Scripting and Python / Re: ODB temperature reader
Last post by Wahid - March 12, 2021, 01:10:18 PM
Hello,

How to add lines in the program to read and display the maximum temperature.

I will be very grateful for your help.
#30
Scripting and Python / Re: Define initial temperature...
Last post by Mark Barkey - March 03, 2021, 12:56:26 PM
Hi Wahid,

It is pretty quiet around here, and my hopes that there would be a lot of other people that would stop by and contribute have not materialized, so thanks for stopping by.


Yes, you should be able to do this.  In one of my videos I talk about how to edit the replay file (rpy) to do automated processing.  Basically, every button press you make is saved to this file.  You can edit it for new file names that you import into the predefined field.

I am sorry, but I do not recall which video it is, and that is the extent of the help I can offer at this time.

Take care!
MEB