Skip to content

Commit b4a7f6c

Browse files
author
Miguel Angel
committed
It came in radians due to automatic conversion. Not the same for walls.
1 parent e1c7f76 commit b4a7f6c

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

kratos.gid/apps/CDEM/write/writeMDPA_Parts.tcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -483,8 +483,7 @@ proc DEM::write::writeMaterialsParts { } {
483483
if {$prop eq "ConstitutiveLaw"} {
484484
write::WriteString " DEM_CONTINUUM_CONSTITUTIVE_LAW_NAME $val"
485485
} elseif {$prop eq "FRICTION"} {
486-
set pi $MathUtils::PI
487-
set propvalue [expr {tan($val*$pi/180.0)}]
486+
set propvalue [expr {tan($val)}]
488487
write::WriteString " FRICTION $propvalue"
489488
} else {
490489
write::WriteString " $prop $val"

kratos.gid/apps/DEM/write/writeMDPA_Parts.tcl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -367,8 +367,7 @@ proc DEM::write::writeMaterialsParts { } {
367367
if {$prop eq "ConstitutiveLaw"} {
368368
write::WriteString " DEM_DISCONTINUUM_CONSTITUTIVE_LAW_NAME $val"
369369
} elseif {$prop eq "FRICTION"} {
370-
set pi $MathUtils::PI
371-
set propvalue [expr {tan($val*$pi/180.0)}]
370+
set propvalue [expr {tan($val)}]
372371
write::WriteString " FRICTION $propvalue"
373372
} else {
374373
write::WriteString " $prop $val"

0 commit comments

Comments
 (0)