Error writing boundary conditions, check Step exists in structure.steps_order[0]

from compas_fea.cad import rhino
from compas_fea.structure import ElementProperties as Properties
from compas_fea.structure import GeneralStep
from compas_fea.structure import PinnedDisplacement
from compas_fea.structure import PipeSection
from compas_fea.structure import PointLoad
from compas_fea.structure import RollerDisplacementXZ
from compas_fea.structure import Steel
from compas_fea.structure import Structure

Author(s): Andrew Liew (github.com/andrewliew)

Structure

mdl = Structure(name=‘beam_frame’, path=‘C:/Temp/’)

Elements

rhino.add_nodes_elements_from_layers(mdl, line_type=‘BeamElement’, layers=‘elset_beams’)

Sets

rhino.add_sets_from_layers(mdl, layers=[‘nset_pins’, ‘nset_load_v’, ‘nset_load_h’, ‘nset_rollers’])

Materials

mdl.add(Steel(name=‘mat_steel’))

Sections

mdl.add(PipeSection(name=‘sec_pipe’, r=0.100, t=0.005))

Properties

mdl.add(Properties(name=‘ep_beam’, material=‘mat_steel’, section=‘sec_pipe’, elset=‘elset_beams’))

Displacements

mdl.add([
PinnedDisplacement(name=‘disp_pins’, nodes=‘nset_pins’),
RollerDisplacementXZ(name=‘disp_rollers’, nodes=‘nset_rollers’),
])

Loads

mdl.add([
PointLoad(name=‘load_h’, nodes=‘nset_load_h’, x=+4000),
PointLoad(name=‘load_v’, nodes=‘nset_load_v’, z=-6000),
])

Steps

mdl.add([
GeneralStep(name=‘step_bc’, displacements=[‘disp_pins’, ‘disp_rollers’]),
GeneralStep(name=‘step_loads’, loads=[‘load_h’, ‘load_v’], iterations=50),
])
mdl.steps_order = [‘step_bc’, ‘step_loads’]

Summary

mdl.summary()

Run

mdl.analyse_and_extract(software=‘abaqus’, fields=[‘u’, ‘rf’, ‘sf’, ‘sm’])

rhino.plot_data(mdl, step=‘step_loads’, field=‘um’, scale=50)
rhino.plot_data(mdl, step=‘step_loads’, field=‘sf1’)
rhino.plot_data(mdl, step=‘step_loads’, field=‘sf2’)
rhino.plot_data(mdl, step=‘step_loads’, field=‘sm1’)
rhino.plot_reaction_forces(mdl, step=‘step_loads’, scale=0.5)

print(mdl.get_nodal_results(step=‘step_loads’, field=‘rfm’, nodes=‘nset_pins’))
print(mdl.get_nodal_results(step=‘step_loads’, field=‘um’, nodes=‘nset_load_v’))

Message: step_loads

Traceback:
line 918, in plot_data, “C:\Users\msi\AppData\Roaming\McNeel\Rhinoceros\6.0\Plug-ins\IronPython (814d908a-e25c-493d-97e9-ee3861957f49)\settings\lib\compas_fea\cad\rhino.py”
line 69, in , “C:\Users\msi\AppData\Local\Temp\TempScript.py”

***** Error writing boundary conditions, check Step exists in structure.steps_order[0] *****
***** Abaqus input file generated: C:/Temp/beam_frame.inp *****

Abaqus JOB beam_frame
Abaqus 6.14-4
Begin Analysis Input File Processor
2020/4/9 16:36:26
Run pre.exe
2020/4/9 16:36:39
Abaqus Error: Analysis Input File Processor exited with an error.
Abaqus/Analysis exited with errors
Abaqus Error: cae exited with an error.

Abaqus License Manager checked out the following license:
“cae” release 6.14 from Flexnet server pc180031
<1023 out of 1024 licenses remain available>.
Abaqus License Manager checked out the following licenses:
Abaqus/Standard checked out 8 tokens from Flexnet server pc180031.
<1016 out of 1024 licenses remain available>.
Abaqus/Analysis exited with error.

***** Analysis failed *****

hi,

i think it would be better if you provide a bit of context (for example by describing what you were doing when the error occurred) and ask for help in the form of a question, rather than dumping the contents of the example script and the error in a post.

perhaps then people will be more motivated to offer assistance…

best,
tom

I install compas_fea ,just want to test it ,so I copy one rhino exmple ,paste it to the pythonscript ,I already install the abaqus 6.14.4 ,i have set the layers ,but Viewport shows nothing
rhino shows:

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
compas_fea Structure: beam_frame
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Nodes

0
Elements

0
Sets

elset_beams : Set
Materials

mat_steel : Steel
Sections

sec_pipe : PipeSection
Loads

load_v : PointLoad
load_h : PointLoad

Displacements

disp_rollers : RollerDisplacementXZ
disp_pins : PinnedDisplacement

Constraints

n/a

Interactions

n/a

Misc

n/a

Steps

step_bc : GeneralStep
step_loads : GeneralStep

***** Error writing boundary conditions, check Step exists in structure.steps_order[0] *****
***** Abaqus input file generated: C:/Temp/beam_frame.inp *****

Abaqus Error: cae exited with an error.

Cannot connect to license server system.
The license server manager (lmgrd) has not been started yet,
the wrong port@host or license file is being used, or the
port or hostname in the license file has been changed.
Feature: cae
Server name: 192.168.1.101
License path: 27011@pc180031;
FLEXnet Licensing error:-15,10. System Error: 10061 “WinSock: Connection refused”
For further information, refer to the FLEXnet Licensing documentation,
available at “www.acresso.com”.

***** Analysis failed *****
Abaqus Error: cae exited with an error.

Cannot connect to license server system.
The license server manager (lmgrd) has not been started yet,
the wrong port@host or license file is being used, or the
port or hostname in the license file has been changed.
Feature: cae
Server name: 192.168.1.101
License path: 27011@pc180031;
FLEXnet Licensing error:-15,10. System Error: 10061 “WinSock: Connection refused”
For further information, refer to the FLEXnet Licensing documentation,
available at “www.acresso.com”.

***** Data extracted from Abaqus .odb file : 30.192 s *****

***** Saving data to structure.results unsuccessful *****

did you run the script with the corresponding example file beam_frame.3dm?

What is happening is that you are creating a analysis without geometry (because your layers are empty) and of course Abaqus is complaining.

Please check here: https://compas-dev.github.io/compas_fea/examples/beam_bathe_rhino.html
I have added a link to the the file you need to use to run this example.

As a general comment, compas_fea ‘translates’ the structural geometry from a cad environment (such as Rhino) to a FEA backend (such as Abaqus), but it does not create it.