Users Forum
ADONIS Category => Bugs and Problems => Topic started by: reversi on November 30, 2026, 10:27:01 am
-
hi roozbeh,
we continue to work on the excel file to automatize the generation of the script to analyze a 3-chambers culvert.
after solving the model, the moments we find on the beams can be viewed in the attached image.
as you can see, the two internal walls have moments equal to zero, that it is not what really happens. we suppose that the creation of those two beams is incorrect, please can you give a look at the script?
this is the script:
set("unit","stress-kpa")
rect("startPoint",-23.95,-24.9,"Endpoint",36.05,10.1)
line("startPoint",-23.95,4,"Endpoint",36.05,1)
line("startPoint",-0.4,0.25,"Endpoint",0.225,0.25)
line("startPoint",0.225,0.25,"Endpoint",2.025,0.251)
line("startPoint",2.025,0.251,"Endpoint",3.825,0.25)
line("startPoint",3.825,0.25,"Endpoint",5.75,0.251)
line("startPoint",5.75,0.251,"Endpoint",7.675,0.25)
line("startPoint",7.675,0.25,"Endpoint",9.375,0.251)
line("startPoint",9.375,0.251,"Endpoint",11.075,0.25)
line("startPoint",11.075,0.25,"Endpoint",11.7,0.25)
line("startPoint",0.225,0.25,"Endpoint",0.225,3.9)
line("startPoint",3.825,0.25,"Endpoint",3.825,3.9)
line("startPoint",7.675,0.25,"Endpoint",7.675,3.9)
line("startPoint",11.075,0.25,"Endpoint",11.075,3.9)
line("startPoint",0.225,3.9,"Endpoint",3.825,3.9)
line("startPoint",3.825,3.9,"Endpoint",7.675,3.9)
line("startPoint",7.675,3.9,"Endpoint",11.075,3.9)
discretize("size","auto")
gmsh("size","auto","elemtype","T3","useNMD","on")
excavate("region",0.24,0.265)
excavate("region",0.24,3.885)
excavate("region",3.84,0.265)
excavate("region",3.84,3.885)
excavate("region",7.69,0.265)
excavate("region",7.69,3.885)
material("create","Mohr-Coulomb" ,"matid",2,"matname","Mat_02","density",1.9,"shear",6250,"bulk",8300,"coh",6.5,"fric",26,"dil",3,"tens",10000000000)
material("create","isoelastic" ,"matid",1,"matname","Mat_01","density",1.9,"shear",6250,"bulk",8300)
material("assign","matid",2,"region",-23.935,-24.885)
material("assign","matid",1,"region",-23.92,4.03)
structure("drawbeam","beamid",1,"frompoint",3.825,0.25,"topoint",3.825,3.9,"segnum",5)
structure("drawbeam","beamid",2,"frompoint",7.675,0.25,"topoint",7.675,3.9,"segnum",5)
structure("drawbeam","beamid",3,"xlim",0.21,11.09,"ylim",0.235,0.265)
structure("drawbeam","beamid",4,"xlim",0.21,11.09,"ylim",3.885,3.915,"segnum",5)
structure("drawbeam","beamid",5,"xlim",0.21,0.24,"ylim",0.235,3.915,"segnum",5)
structure("drawbeam","beamid",6,"xlim",11.06,11.09,"ylim",0.235,3.915,"segnum",5)
structure("drawbeam","beamid",7,"frompoint",-0.4,0.25,"topoint",0.225,0.25,"segnum",2)
structure("drawbeam","beamid",8,"frompoint",11.075,0.25,"topoint",11.7,0.25,"segnum",2)
structure("material","beamid",1,"area",0.35,"I",0.00357291666666667,"ymod",25000000,"dens",2.5,"spacing",1)
structure("material","beamid",2,"area",0.35,"I",0.00357291666666667,"ymod",25000000,"dens",2.5,"spacing",1)
structure("material","beamid",3,"area",0.5,"I",0.0104166666666667,"ymod",25000000,"dens",2.5,"spacing",1)
structure("material","beamid",4,"area",0.4,"I",0.00533333333333333,"ymod",25000000,"dens",2.5,"spacing",1)
structure("material","beamid",5,"area",0.45,"I",0.00759375,"ymod",25000000,"dens",2.5,"spacing",1)
structure("material","beamid",6,"area",0.45,"I",0.00759375,"ymod",25000000,"dens",2.5,"spacing",1)
structure("material","beamid",7,"area",0.5,"I",0.0104166666666667,"ymod",25000000,"dens",2.5,"spacing",1)
structure("material","beamid",8,"area",0.5,"I",0.0104166666666667,"ymod",25000000,"dens",2.5,"spacing",1)
applybc("xfix","xlim",-23.965,-23.935,"ylim",-24.915,10.115)
applybc("xfix","xlim",36.035,36.065,"ylim",-24.915,10.115)
applybc("xyfix","xlim",-23.965,36.065,"ylim",-24.915,-24.885)
applybc("Syy",-250,"xlim",-0.965000000000001,29.065,"ylim",10.085,10.115)
set("gravity",0,9.81)
solve()
-
Hi,
There's nothing wrong with the beam formulation; the issue is with your model. You can't add a standalone beam and expect forces to transfer between elements. The vertical beams must connect to existing structural nodes. Use the "fromstrucnode" or "fromstrucnodeatpoint" arguments to ensure the nodes are connected.
The script below is a revised version of your model. For simplicity, I used coarser mesh with the same ID for every beam. The model was created in version 3.90.
newmodel()
set("unit","stress-kpa")
rect("startPoint",-23.95,-24.9,"Endpoint",36.05,10.1)
line("startPoint",-23.95,4,"Endpoint",36.05,1)
line("startPoint",-0.4,0.25,"Endpoint",0.225,0.25)
line("startPoint",0.225,0.25,"Endpoint",2.025,0.251)
line("startPoint",2.025,0.251,"Endpoint",3.825,0.25)
line("startPoint",3.825,0.25,"Endpoint",5.75,0.251)
line("startPoint",5.75,0.251,"Endpoint",7.675,0.25)
line("startPoint",7.675,0.25,"Endpoint",9.375,0.251)
line("startPoint",9.375,0.251,"Endpoint",11.075,0.25)
line("startPoint",11.075,0.25,"Endpoint",11.7,0.25)
line("startPoint",0.225,0.25,"Endpoint",0.225,3.9)
line("startPoint",3.825,0.25,"Endpoint",3.825,3.9)
line("startPoint",7.675,0.25,"Endpoint",7.675,3.9)
line("startPoint",11.075,0.25,"Endpoint",11.075,3.9)
line("startPoint",0.225,3.9,"Endpoint",3.825,3.9)
line("startPoint",3.825,3.9,"Endpoint",7.675,3.9)
line("startPoint",7.675,3.9,"Endpoint",11.075,3.9)
discretize("size","auto")
gmsh("size","auto","elemtype","T3","useNMD","off")
excavate("region",0.24,0.265)
excavate("region",0.24,3.885)
excavate("region",3.84,0.265)
excavate("region",3.84,3.885)
excavate("region",7.69,0.265)
excavate("region",7.69,3.885)
material("create","Mohr-Coulomb" ,"matid",2,"matname","Mat_02","density",1.9,"shear",6250,"bulk",8300,"coh",6.5,"fric",26,"dil",3,"tens",10000000000)
material("create","isoelastic" ,"matid",1,"matname","Mat_01","density",1.9,"shear",6250,"bulk",8300)
material("assign","matid",2,"region",-23.935,-24.885)
material("assign","matid",1,"region",-23.92,4.03)
// This command connects the beams to the soil nodes.
structure("drawbeam","beamid",1,"xlim",-0.022,11.453,"ylim",-0.379,4.256)
// This and the following lines ensure the vertical beams connect to existing structural nodes, maintaining force continuity.
structure("drawbeam","beamid",1,"fromstrucnode",9,"tostrucnode",10,"segnum",5)
structure("drawbeam","beamid",1,"fromstrucnode",16,"tostrucnode",17,"segnum",5)
structure("material","beamid",1,"area",0.35,"I",0.00357291666666667,"ymod",25000000,"dens",2.5,"spacing",1)
applybc("xfix","xlim",-23.965,-23.935,"ylim",-24.915,10.115)
applybc("xfix","xlim",36.035,36.065,"ylim",-24.915,10.115)
applybc("xyfix","xlim",-23.965,36.065,"ylim",-24.915,-24.885)
applybc("Syy",-250,"xlim",-0.965000000000001,29.065,"ylim",10.085,10.115)
set("gravity",0,9.81)
solve()
-
You can't add a standalone beam and expect forces to transfer between elements. The vertical beams must connect to existing structural nodes. Use the "fromstrucnode" or "fromstrucnodeatpoint" arguments to ensure the nodes are connected.
ok, i got the point.
// This and the following lines ensure the vertical beams connect to existing structural nodes, maintaining force continuity.
structure("drawbeam","beamid",1,"fromstrucnode",9,"tostrucnode",10,"segnum",5)
structure("drawbeam","beamid",1,"fromstrucnode",16,"tostrucnode",17,"segnum",5)
where can i read the number that adonis assigns to nodes?
-
The program's GUI handles this when you click the relevant structural nodes. You can also use fromstrucnodeatpoint, which selects the closest structural node to the specified point and attaches the beam to it.
-
ok.
i posed the question because i want to automatize every step. but seems that increasing the discretization of the beams can't be automatized (i don't want to create an enormous number of nodes defining a very little size of the discretization of the entire model).
-
You can automate this easily by drawing a vertical line where you want to add the vertical beam. This ensures that two nodes are generated regardless of the mesh size. Then, use the fromstrucatpoint argument to attach the newly generated beam to the existing structure.
-
You can automate this easily by drawing a vertical line where you want to add the vertical beam. This ensures that two nodes are generated regardless of the mesh size. Then, use the fromstrucatpoint argument to attach the newly generated beam to the existing structure.
this is what we actually do to create the 2 inner beams. the problem is to increase the mesh of the external beams. to do this, we need to use the command segment() but don't know the id of the beams. better: excel doesn't know the id of the beams.