Hi there,
When running the tutorial for IDEA integrations (Software integrations - IDEA StatiCa Concrete | VIKTOR Documentation), my installed worker returns ERROR EXECUTION_ERROR: Failed creating model
This happens both when using the OpenModel and the Model examples. The worker is for idearcs v.5.1.3. There was a similar problem posted in february, but I couldn’t find a solution there.
The code I’m using:
@staticmethod
def run_idea(params, **kwargs) -> None:
from viktor.external.idea_rcs import OpenModel, ConcreteMaterial, ReinforcementMaterial, CrossSectionType, \
ResultOfInternalForces, LoadingSLS, LoadingULS, MemberType, TwoWaySlabType
model = OpenModel() # Initialize the model.
# Create the concrete section.
mat = model.create_matconcrete_ec2(ConcreteMaterial.C12_15)
cs = model.create_cross_section_parameter(name='cs', cross_section_type=CrossSectionType.RECT, material=mat,
Width=2.0, Height=2.0)
# Create the reinforced cross section.
rcs = model.create_reinforced_cross_section(name='rcs', cross_section=cs)
# Create bars (and stirrups) as desired
mat_reinf = model.create_matreinforcement_ec2(ReinforcementMaterial.B_400A)
bar_locations = [(-0.101, -0.175), (0.101, -0.175), (0.101, 0.175), (-0.101, 0.175)]
bar_diameters = [0.016, 0.016, 0.016, 0.016]
for coords, diameter in zip(bar_locations, bar_diameters):
rcs.create_bar(coords, diameter, mat_reinf)
# Create a CheckMember.
member = model.create_check_member1d()
# 'Assign' the CheckMember to a CheckSection with the previously defined reinforced section and add extremes.
check_section = model.add_check_section(description='S 1', check_member=member, reinf_section=rcs)
freq = LoadingSLS(ResultOfInternalForces(N=-100000, My=210000))
fund = LoadingULS(ResultOfInternalForces(N=-99999, My=200000))
check_section.create_extreme(frequent=freq, fundamental=fund)
# 'Assign' the necessary additional data to the CheckMember.
model.add_member_data_ec2(member, MemberType.BEAM_SLAB, TwoWaySlabType.SHELL_AS_PLATE)
# Generate the input XML file.
input_file = model.generate_xml_input()
from viktor.external.idea_rcs import IdeaRcsAnalysis
# Generate the input XML file from `Model` or `OpenModel`, or generate one yourself.
# Run the analysis and obtain the output file.
analysis = IdeaRcsAnalysis(input_file=input_file)
analysis.execute(timeout=500)
output_file = analysis.get_output_file()