Skip to content

Commit de71383

Browse files
Merge pull request #11493 from KratosMultiphysics/cleaning-fem3dem-app
[Fem2Dem] Cleaning and updates
2 parents 6e51738 + 8f58500 commit de71383

20 files changed

+17
-1329
lines changed

applications/FemToDemApplication/custom_problemtype/FemDemKratos.gid/ProjectParameters.tcl

Lines changed: 0 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -10,16 +10,6 @@ proc WriteProjectParameters { basename dir problemtypedir TableDict} {
1010

1111
puts $FileVar "\{"
1212

13-
## AMR data
14-
puts $FileVar " \"AMR_data\": \{"
15-
puts $FileVar " \"activate_AMR\": [GiD_AccessValue get gendata Activate_MMG_Remeshing_Technique],"
16-
puts $FileVar " \"hessian_variable_parameters\": \{"
17-
puts $FileVar " \"normalized_free_energy\": false,"
18-
puts $FileVar " \"correct_with_displacements\": true,"
19-
puts $FileVar " \"correction_factor\": 1.0"
20-
puts $FileVar " \}"
21-
puts $FileVar " \},"
22-
2313
## problem_data
2414
puts $FileVar " \"problem_data\": \{"
2515
puts $FileVar " \"problem_name\": \"$basename\","
@@ -203,20 +193,6 @@ proc WriteProjectParameters { basename dir problemtypedir TableDict} {
203193
puts $FileVar " \"point_data_configuration\": \[\]"
204194
puts $FileVar " \},"
205195

206-
# restart options
207-
puts $FileVar " \"restart_options\": \{"
208-
puts $FileVar " \"SaveRestart\": false,"
209-
puts $FileVar " \"RestartFrequency\": 0,"
210-
puts $FileVar " \"LoadRestart\": false,"
211-
puts $FileVar " \"Restart_Step\": 0"
212-
puts $FileVar " \},"
213-
214-
# constraint data
215-
puts $FileVar " \"constraints_data\": \{"
216-
puts $FileVar " \"incremental_load\": false,"
217-
puts $FileVar " \"incremental_displacement\": false"
218-
puts $FileVar " \},"
219-
220196
#print the two lists to plot the displ-reaction
221197
set Groups [GiD_Info conditions list_of_nodes_displacement groups]
222198
set Entities [GiD_EntitiesGroups get [lindex [lindex $Groups 0] 1] nodes]

applications/FemToDemApplication/custom_problemtype/FemDemKratos3D.gid/FemDemKratos3D.cnd

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ BOOK: Parts
22

33
CONDITION: Body_Part
44
CONDTYPE: over groups
5-
CONDMESHTYPE: over body elements
5+
CONDMESHTYPE: over body elements nodes
66
GROUPALLOW: volumes elements
77
QUESTION: Yield_Surface#CB#(ModifiedMohrCoulomb,MohrCoulomb,SimoJu,Rankine,DruckerPrager,VonMises,Tresca,Elastic)
88
VALUE: ModifiedMohrCoulomb

applications/FemToDemApplication/custom_problemtype/FemDemKratos3D.gid/ProjectParameters.tcl

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,6 @@ proc WriteProjectParameters { basename dir problemtypedir TableDict} {
99
set FileVar [open $filename w]
1010

1111
puts $FileVar "\{"
12-
13-
## AMR data
14-
puts $FileVar " \"AMR_data\": \{"
15-
puts $FileVar " \"activate_AMR\": [GiD_AccessValue get gendata Activate_MMG_Remeshing_Technique],"
16-
puts $FileVar " \"hessian_variable_parameters\": \{"
17-
puts $FileVar " \"normalized_free_energy\": false,"
18-
puts $FileVar " \"correct_with_displacements\": true,"
19-
puts $FileVar " \"correction_factor\": 1.0"
20-
puts $FileVar " \}"
21-
puts $FileVar " \},"
2212
## problem_data
2313
puts $FileVar " \"problem_data\": \{"
2414
puts $FileVar " \"problem_name\": \"$basename\","
@@ -187,10 +177,6 @@ proc WriteProjectParameters { basename dir problemtypedir TableDict} {
187177
append PutStrings \" REACTION \" ,
188178
}
189179

190-
#AppendOutputVariables PutStrings iGroup Write_Force POINT_LOAD
191-
#AppendOutputVariables PutStrings iGroup Write_Face_Load LINE_LOAD
192-
#AppendOutputVariables PutStrings iGroup Write_Normal_Load POSITIVE_FACE_PRESSURE
193-
#AppendOutputVariables PutStrings iGroup Write_Body_Acceleration VOLUME_ACCELERATION
194180
if {$iGroup > 0} {
195181
set PutStrings [string trimright $PutStrings ,]
196182
}
@@ -224,20 +210,6 @@ proc WriteProjectParameters { basename dir problemtypedir TableDict} {
224210
puts $FileVar " \"point_data_configuration\": \[\]"
225211
puts $FileVar " \},"
226212

227-
# restart options
228-
puts $FileVar " \"restart_options\": \{"
229-
puts $FileVar " \"SaveRestart\": false,"
230-
puts $FileVar " \"RestartFrequency\": 0,"
231-
puts $FileVar " \"LoadRestart\": false,"
232-
puts $FileVar " \"Restart_Step\": 0"
233-
puts $FileVar " \},"
234-
235-
# constraint data
236-
puts $FileVar " \"constraints_data\": \{"
237-
puts $FileVar " \"incremental_load\": false,"
238-
puts $FileVar " \"incremental_displacement\": false"
239-
puts $FileVar " \},"
240-
241213
# print the two lists to plot the displ-reaction
242214
set Groups [GiD_Info conditions list_of_nodes_displacement groups]
243215
set Entities [GiD_EntitiesGroups get [lindex [lindex $Groups 0] 1] nodes]

0 commit comments

Comments
 (0)