Skip to content

Commit 7b31676

Browse files
set enable_dynamic_substepping in structural
1 parent 33ef007 commit 7b31676

3 files changed

Lines changed: 6 additions & 4 deletions

File tree

kratos.gid/apps/Structural/app.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,8 @@
5050
"materials_file": "StructuralMaterials.json",
5151
"properties_location": "json",
5252
"model_part_name": "Structure",
53-
"output_model_part_name": ""
53+
"output_model_part_name": "",
54+
"enable_dynamic_substepping": true
5455
},
5556
"main_launch_file": "../../exec/MainKratos.py",
5657
"examples": "examples/examples.xml"

kratos.gid/apps/Structural/write/writeProjectParameters.tcl

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ proc ::Structural::write::getOldParametersDict { } {
1212

1313
# Time Parameters
1414
set timeSteppingDict [dict create]
15-
if {$solutiontype eq "Static" || $solutiontype eq "eigen_value"} {
15+
set enable_dynamic_substepping [::Structural::GetWriteProperty "enable_dynamic_substepping"]
16+
if {[write::isBooleanFalse $enable_dynamic_substepping] || ($solutiontype eq "Static" || $solutiontype eq "eigen_value")} {
1617
set time_step "1.1"
1718
dict set problemDataDict start_time "0.0"
1819
dict set problemDataDict end_time "1.0"

kratos.gid/scripts/Applications.tcl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,9 +296,9 @@ oo::class create App {
296296
method getPermission {n} {variable properties; if {[dict exists $properties permissions $n]} {return [dict get $properties permissions $n]} }
297297
method getPermissions {} {variable properties; return [dict get $properties permissions]}
298298
method getUniqueName {n} {variable properties; if {[dict exists $properties unique_names $n]} {return [dict get $properties unique_names $n]} }
299-
method getUniqueNames {} {variable properties; return [dict get $properties unique_names}
299+
method getUniqueNames {} {variable properties; return [dict get $properties unique_names]}
300300
method getWriteProperty {n} {variable properties; if {[dict exists $properties write $n]} {return [dict get $properties write $n]} }
301-
method getWriteProperties {} {variable properties; return [dict get $properties write}
301+
method getWriteProperties {} {variable properties; return [dict get $properties write]}
302302
}
303303

304304
proc apps::LoadAppProperties {app} {

0 commit comments

Comments
 (0)