When we used the the twoNodelink in opensees3.3.0,there will display "expected integer but got "-dir"".What should we do?
wipe;
model basic -ndm 2 -ndf 3;
if { [file exists output] == 0 } {
file mkdir output;
}
node 1 0 0 0;
node 2 0 0 0;
node 3 0 0 0;
fix 1 1 1 1;
fix 2 0 1 1;
fix 3 0 1 1;
geomTransf Linear 1;
puts "material";
#uniaxialMaterial ViscousDamper $matTag $K $Cd $alpha <$LGap> < $NM $RelTol $AbsTol $MaxHalf>
uniaxialMaterial ViscousDamper 1 [expr 5400*10000] 8.1 1;
uniaxialMaterial Elastic 2 5400;
puts "element";
element twoNodeLink 1 1 2 -mat 1 -dir 1;
element twoNodeLink 2 1 2 -mat 2 -dir 1;
#inerter eleTag iNode jNode -dir dirs -inertance ib <-orient <x1 x2 x3> y1 y2 y3> <-pDelta Mratios> <-doRayleigh> <-damp cb> <-mass m>
element inerter 3 2 3 -dir 1 -inertance 2;
expected integer but got "-dir"
Moderators: silvia, selimgunay, Moderators
Re: expected integer but got "-dir"
Looks like there's a parsing error in OpenSees. I'll fix it tomorrow.
-
- Posts: 5
- Joined: Sun Jun 20, 2021 4:14 pm
Re: expected integer but got "-dir"
Thank you very much. We find that this problem occurs when we input directly, but it can also operate normally when we use the command “source” directly.
Re: expected integer but got "-dir"
I'm not sure what you mean that it works normally when "sourced"
Re: expected integer but got "-dir"
OK, I think I know what you mean.
Put a statement at the end of your script, like puts "a". There's some kind of parsing error that's not obvious. It happens with other elements too.
Put a statement at the end of your script, like puts "a". There's some kind of parsing error that's not obvious. It happens with other elements too.