Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Pfem melting application #834

Closed
wants to merge 150 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
150 commits
Select commit Hold shift + click to select a range
b8b4f09
first steps
Mar 15, 2021
7be259a
typo
jginternational Mar 15, 2021
ade96bf
Too many forgets!
jginternational Mar 17, 2021
e6afc38
remove 2d
jginternational Mar 31, 2021
7117c1e
Fluid conditions
jginternational Mar 31, 2021
4ae106f
Fluid part name
jginternational Mar 31, 2021
e2011a1
Materials y constitutive laws
jginternational Mar 31, 2021
747a39f
solution messages of warn
jginternational Mar 31, 2021
fb0a48a
Laser
jginternational Mar 31, 2021
30b75a7
No materials copied
jginternational Mar 31, 2021
aaeb2d5
Merge branch 'master' into pfem-melting-application
jginternational Mar 31, 2021
b454e23
Merge branch 'master' into pfem-melting-application
jginternational Mar 31, 2021
420e949
Merge branch 'pfem-melting-application' of https://github.com/KratosM…
Apr 6, 2021
bb8be40
Merge branch 'master' into pfem-melting-application
jginternational Apr 6, 2021
65e500e
Merge branch 'master' into pfem-melting-application
jginternational Apr 21, 2021
3c8ed83
logo
jginternational Apr 21, 2021
33ca28b
graphical improvements
Jul 5, 2021
cf699f2
Merge branch 'pfem-melting-application' of https://github.com/KratosM…
Jul 5, 2021
8faab22
Material corrected
Sep 16, 2021
45d64f8
Merge branch 'master' into pfem-melting-application
jginternational Sep 17, 2021
c1a8e70
adapt to new format
jginternational Sep 17, 2021
fa88c63
base project parameters
jginternational Sep 17, 2021
417fdc1
material_import_settings
jginternational Sep 17, 2021
384707e
main script
jginternational Sep 17, 2021
8131ad4
restart
jginternational Sep 17, 2021
945745c
add description field
jginternational Sep 17, 2021
79dfd06
minor
jginternational Sep 20, 2021
d9b3386
add template laser
jginternational Sep 20, 2021
b5ac55a
Merge remote-tracking branch 'origin/add-files-handler' into pfem-mel…
jginternational Sep 21, 2021
d62488a
enable file usage
jginternational Sep 21, 2021
6865a82
remove emissivity from material
jginternational Sep 21, 2021
9218c2f
Boundary conditions for thermic
jginternational Sep 21, 2021
6299341
Laser as condition
jginternational Sep 21, 2021
5c86ad6
Load app properly
jginternational Sep 21, 2021
fe24f9a
add laser as condition
jginternational Sep 21, 2021
a52b3b2
missing bracket
jginternational Sep 21, 2021
06fef4c
add basic example
jginternational Sep 21, 2021
c125246
missing inner function in package
jginternational Sep 21, 2021
bf2d6d7
Add laser path file in example
jginternational Sep 21, 2021
983d506
ambient temperature
jginternational Sep 21, 2021
7ae9f0e
write laser not necessary
jginternational Sep 21, 2021
67615dd
Laser tracker
jginternational Sep 22, 2021
72d9efd
Need the event to end drawing
jginternational Sep 22, 2021
3062aee
Merge branch 'master' into pfem-melting-application
jginternational Sep 23, 2021
cad038e
you can run without saving
jginternational Sep 24, 2021
2adb35a
hotfix intervals
jginternational Sep 24, 2021
54cde1d
reform_dofs_at_each_step and variables
jginternational Sep 24, 2021
b913730
unify ambient temperature
jginternational Sep 24, 2021
b1d0eab
ThermallyCoupledPfem2
jginternational Sep 24, 2021
cc2c3d2
needed catches
jginternational Sep 27, 2021
a566bb8
Dem also uses files
jginternational Sep 27, 2021
ef494ac
No file word changed
jginternational Sep 27, 2021
7f6a719
Dam needs 15.1.4d
jginternational Sep 29, 2021
5162f9c
minor failures
jginternational Oct 7, 2021
8257875
Merge branch 'master' into pfem-melting-application
jginternational Oct 10, 2021
51566d4
Change name of MaxGroups
jginternational Oct 11, 2021
6538e97
Add skin to condition
jginternational Oct 13, 2021
0e57b32
ProcAfterApplyParts
jginternational Oct 13, 2021
ae1a66b
Print body nodes submodelpart
jginternational Oct 13, 2021
ccdad9b
delete unused file
jginternational Oct 13, 2021
8aa1459
print submodelpart
jginternational Oct 13, 2021
ebf6708
Laser over volume
jginternational Oct 13, 2021
1fa6a58
base idea
farrufat-cimne Oct 27, 2021
763fe8c
building the gid tree
farrufat-cimne Nov 8, 2021
65df0da
update
farrufat-cimne Nov 8, 2021
e394bc9
remove dependencies
jginternational Nov 9, 2021
d62d828
update
farrufat-cimne Nov 9, 2021
ae98927
Merge branch 'master' into pfem-melting-application
jginternational Nov 9, 2021
b38ef7e
material names
jginternational Nov 9, 2021
e03fa61
missing parameters in materials
jginternational Nov 9, 2021
e07f695
VelocityConstraints3D
jginternational Nov 9, 2021
8952293
Add laserpath
jginternational Nov 9, 2021
b0b4555
Laser tracker
jginternational Nov 9, 2021
561c5ac
Example fixed
jginternational Nov 9, 2021
52e758c
Start writing mdpa
jginternational Nov 9, 2021
384419d
fluid can allow elements from other apps, so filter by family
jginternational Nov 9, 2021
9e64e32
write the condition in the mdpa as nodal submodelpart for velocity
jginternational Nov 9, 2021
2af573a
forget previous json
jginternational Nov 9, 2021
338642e
GetGravity to common code
jginternational Nov 10, 2021
ff7524b
GetProblemDataDict for melting
jginternational Nov 10, 2021
34656d8
properly write json
jginternational Nov 11, 2021
d8d857d
write materials file
jginternational Nov 11, 2021
cf18509
material parameters
jginternational Nov 11, 2021
eae08f4
Add laser process
jginternational Nov 11, 2021
f3a6c02
laser shown in vertical
jginternational Nov 16, 2021
544ff45
select groups for conditions
farrufat-cimne Nov 16, 2021
38beea7
fixing names
Nov 17, 2021
32ec1ea
update
farrufat-cimne Nov 17, 2021
5eeafc3
testing
farrufat-cimne Nov 17, 2021
d210080
mesh size to json
jginternational Nov 18, 2021
ee319bc
fixes
Nov 18, 2021
2598519
Merge branch 'pfem-melting-application' of https://github.com/KratosM…
Nov 18, 2021
6e88f89
TABLE
jginternational Nov 18, 2021
8e00fca
Filter example
jginternational Nov 18, 2021
34cabf7
fix python modules in processes
farrufat-cimne Nov 18, 2021
e7d329a
moved advancing mesh features inside DEM parts
farrufat-cimne Nov 18, 2021
8c1848c
Unified conditions file
farrufat-cimne Nov 22, 2021
af4b296
example for test new interface
farrufat-cimne Nov 23, 2021
916c8d3
missing
farrufat-cimne Nov 23, 2021
01ddd09
missing tree refresh
jginternational Nov 23, 2021
3bf311a
inlet for test example
farrufat-cimne Nov 24, 2021
75d498a
assign mesh size
farrufat-cimne Nov 24, 2021
97efff1
test dbg
farrufat-cimne Nov 25, 2021
c96ea80
update
farrufat-cimne Nov 25, 2021
44e483d
minor change
farrufat-cimne Nov 26, 2021
8152e5f
json
farrufat-cimne Nov 29, 2021
c6f1593
Merge branch 'master' into pfem-melting-application
jginternational Nov 30, 2021
3a8efd9
writing things
jginternational Nov 30, 2021
e97a64c
Variable name change
Nov 30, 2021
60c0d76
updated tree with injectors
farrufat-cimne Dec 1, 2021
8ee6bd0
final tree form
farrufat-cimne Dec 2, 2021
5dcc536
changes in example test
farrufat-cimne Dec 2, 2021
f32dfed
added inlet condition to the example test
farrufat-cimne Dec 3, 2021
429dc55
minor
farrufat-cimne Dec 9, 2021
e209d1d
writes process in json
farrufat-cimne Dec 13, 2021
1d76a43
update write conditions
farrufat-cimne Dec 14, 2021
0043537
fix
farrufat-cimne Dec 14, 2021
ffa6f9c
incorrect dict
farrufat-cimne Dec 15, 2021
514432c
partial updated wall mdpa write
farrufat-cimne Dec 15, 2021
df58b46
Merge branch 'master' into pfem-melting-application
jginternational Dec 16, 2021
26a5ed9
get kinematic condition name
farrufat-cimne Dec 16, 2021
3365d1a
test
farrufat-cimne Dec 16, 2021
2d8aaab
add warnwin warning
jginternational Dec 16, 2021
1f334f1
add results
jginternational Dec 16, 2021
951c888
material table
jginternational Dec 16, 2021
8a0f859
fix loads process write
farrufat-cimne Dec 21, 2021
2d9add3
Merge branch 'master' into dem/add_processes
jginternational Jan 13, 2022
20004c1
improved wall print in mdpa
jginternational Jan 13, 2022
362a8e8
update
farrufat-cimne Jan 17, 2022
d524cc5
update
farrufat-cimne Jan 20, 2022
cbf1685
Merge branch 'master' into pfem-melting-application
Jan 31, 2022
a2c99f8
laser to scale
jginternational Jan 31, 2022
367184b
adjusting size again
Jan 31, 2022
50ae110
Merge branch 'dem/add_processes' of https://github.com/KratosMultiphy…
jginternational Jan 31, 2022
fc565e3
Merge branch 'pfem-melting-application' of https://github.com/KratosM…
jginternational Jan 31, 2022
9f97d2d
Merge branch 'master' into pfem-melting-application
jginternational Feb 4, 2022
12cb6be
min version 15.1.4d for melting
jginternational Feb 4, 2022
44c3665
save files in save as event
jginternational Feb 4, 2022
1ddd244
save as initial
jginternational Feb 7, 2022
c49cc6a
improving example
juliobarna Mar 21, 2022
a7f5b4e
improving laser path
juliobarna Mar 21, 2022
d0ddcd8
less laser value
juliobarna Mar 22, 2022
788ab2f
laser power can change with time
Aug 11, 2022
e3dfd3d
switch remesh no-remesh
Aug 11, 2022
09e5b66
fixing import dependency
Aug 25, 2022
f5e8b84
Merge branch 'master' into pfem-melting-application
jginternational Jun 28, 2023
191b4ea
add melting to launchers
jginternational Jun 28, 2023
753c7fe
Warnings on missing files
jginternational Jul 5, 2023
6889a23
typo
jginternational Jul 5, 2023
bf4e962
Warning on laser path
jginternational Jul 6, 2023
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 1 addition & 9 deletions kratos.gid/apps/Buoyancy/write/writeProjectParameters.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ proc ::Buoyancy::write::getParametersDict { } {
dict set projectParametersDict output_processes [write::GetDefaultOutputProcessDict]

# restart options
dict set projectParametersDict restart_options [Buoyancy::write::GetRestart_Dict]
dict set projectParametersDict restart_options [::write::GetDefaultRestartDict]

# solver settings
dict set projectParametersDict solver_settings [Buoyancy::write::GetSolverSettings_Dict]
Expand Down Expand Up @@ -55,14 +55,6 @@ proc ::Buoyancy::write::GetProblemData_Dict { } {
# dict set problemDataDict model_part_name "ThermalModelPart"
}

proc ::Buoyancy::write::GetRestart_Dict { } {

set restartDict [dict create]
dict set restartDict SaveRestart False
dict set restartDict RestartFrequency 0
dict set restartDict LoadRestart False
dict set restartDict Restart_Step 0
}

proc ::Buoyancy::write::GetSolverSettings_Dict { } {
set settings [dict create]
Expand Down
9 changes: 7 additions & 2 deletions kratos.gid/apps/Buoyancy/xml/Procs.spd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
return "normal"
]]>
</proc>
<proc n='AfterApplyParts' args='args'>
<![CDATA[
Fluid::xml::ProcAfterApplyParts $domNode
]]>
</proc>
<proc n='CheckIdOnMyParent' args='args'>
<![CDATA[
set r "hidden"
Expand Down Expand Up @@ -132,8 +137,8 @@
}
]]>
</proc>
<proc n='HideIfElement' args='args'>
<![CDATA[
<proc n='HideIfElement' args='args'>
<![CDATA[
return [Fluid::xml::ProcHideIfElement $domNode {*}$args]
]]>
</proc>
Expand Down
4 changes: 4 additions & 0 deletions kratos.gid/apps/Buoyancy/xml/XmlController.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ proc ::Buoyancy::xml::getUniqueName {name} {
proc ::Buoyancy::xml::CustomTree { args } {
spdAux::parseRoutes

set prev_active_app [[apps::getActiveApp] getName]

apps::setActiveAppSoft Fluid
Fluid::xml::CustomTree

Expand All @@ -54,4 +56,6 @@ proc ::Buoyancy::xml::CustomTree { args } {

# Hide Fluid gravity -> Boussinesq
spdAux::SetValueOnTreeItem state hidden FLGravity

apps::setActiveAppSoft $prev_active_app
}
4 changes: 4 additions & 0 deletions kratos.gid/apps/Common/xml/BoundaryConditions.spd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<container n="BoundaryConditions" pn="Conditions" un="BC" icon="nodal" open_window="0">
<dynamicnode command="spdAux::injectConditions" args=""/>
</container>
4 changes: 4 additions & 0 deletions kratos.gid/apps/Common/xml/Materials.spd
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?>
<container n="materials" pn="Materials" un="Materials" icon="material16" help="Materials database" open_window="0">
<dynamicnode command="spdAux::injectMaterials" args=""/>
</container>
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ proc ::ConjugateHeatTransfer::write::getParametersDict { } {
dict set projectParametersDict output_processes [ConjugateHeatTransfer::write::GetOutputProcessesList]

# Restart options
dict set projectParametersDict restart_options [write::GetDefaultRestartDict]
dict set projectParametersDict restart_options [::write::GetDefaultRestartDict]

# processes
dict set projectParametersDict processes [ConjugateHeatTransfer::write::GetProcessList]
Expand Down
7 changes: 6 additions & 1 deletion kratos.gid/apps/ConjugateHeatTransfer/xml/Procs.spd
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
return "normal"
]]>
</proc>
<proc n='AfterApplyParts' args='args'>
<![CDATA[
Fluid::xml::ProcAfterApplyParts $domNode
]]>
</proc>
<proc n='CheckIdOnMyParent' args='args'>
<![CDATA[
set r "hidden"
Expand Down Expand Up @@ -61,7 +66,7 @@
lappend arguments "SolutionType" $solutionType
#W "arguments $arguments"
set Sols [::Model::GetSolutionStrategies $arguments ]
set ids [list ]
set ids [list ]
foreach ss $Sols {
lappend ids [$ss getName]
append names [$ss getName] ","
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ proc ::ConvectionDiffusion::write::getParametersDict { } {
dict set restartDict RestartFrequency 0
dict set restartDict LoadRestart False
dict set restartDict Restart_Step 0
dict set projectParametersDict restart_options $restartDict

dict set projectParametersDict restart_options [::write::GetDefaultRestartDict]

return $projectParametersDict
}
Expand Down
3 changes: 2 additions & 1 deletion kratos.gid/apps/ConvectionDiffusion/xml/Strategies.xml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,8 @@
<parameter n="solution_relative_tolerance" pn="Temperature relative tolerance" type="double" v="1e-5" parent="displacement_criterion,and_criterion,or_criterion" help="Relative temperature tolerance employed in the nonlinear iteration"/>
<parameter n="solution_absolute_tolerance" pn="Temperature absolute tolerance" type="double" v="1e-7" parent="displacement_criterion,and_criterion,or_criterion" help="Absolute temperature tolerance employed in the nonlinear iteration"/>
<parameter n="residual_relative_tolerance" pn="Residual relative tolerance" type="double" v="1e-5" parent="residual_criterion,and_criterion,or_criterion" help="Relative residual tolerance employed in the nonlinear iteration"/>
<parameter n="residual_absolute_tolerance" pn="Residual absolute tolerance" type="double" v="1e-7" parent="residual_criterion,and_criterion,or_criterion" help="Absolute residual tolerance employed in the nonlinear iteration"/></parameter>
<parameter n="residual_absolute_tolerance" pn="Residual absolute tolerance" type="double" v="1e-7" parent="residual_criterion,and_criterion,or_criterion" help="Absolute residual tolerance employed in the nonlinear iteration"/>
</parameter>
</parameter_list>

<!-- linear solver settings -->
Expand Down
6 changes: 4 additions & 2 deletions kratos.gid/apps/DEM/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@
"write/write_utils.tcl",
"examples/examples.tcl",
"examples/SpheresDrop.tcl",
"examples/SpheresDropForTest.tcl",
"examples/CirclesDrop.tcl"
],
"start_script": "::DEM::Init",
Expand All @@ -38,12 +39,13 @@
"show_toolbar": true,
"intervals": true,
"wizard": false,
"import_files": true
"import_files":true
},
"unique_names": {
"parts": "DEMParts",
"nodal_conditions": "DEMNodalConditions",
"init_conditions": "DEMInitialConditions",
"conditions": "DEMConditions",
"loads": "DEMFEMLoads",
"materials": "DEMMaterials"
},
"write": {
Expand Down
131 changes: 131 additions & 0 deletions kratos.gid/apps/DEM/examples/SpheresDropForTest.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
namespace eval ::DEM::examples::SpheresDropForTest {
namespace path ::DEM::examples
Kratos::AddNamespace [namespace current]

}

proc ::DEM::examples::SpheresDropForTest::Init {args} {
if {![Kratos::IsModelEmpty]} {
set txt "We are going to draw the example geometry.\nDo you want to discard your previous work?"
set retval [tk_messageBox -default ok -icon question -message $txt -type okcancel]
if { $retval == "cancel" } { return }
}

DrawGeometry
AssignToTree
AssignMeshSize

GiD_Process 'Redraw
GidUtils::UpdateWindow GROUPS
GidUtils::UpdateWindow LAYER
}

proc ::DEM::examples::SpheresDropForTest::DrawGeometry { } {
Kratos::ResetModel

# Draw floor surface
GiD_Process Mescape Geometry Create Object Rectangle -5 -5 0 5 5 0 escape
# Draw inlet surface
GiD_Process Mescape Geometry Create Object Rectangle -2 -2 5 2 2 5 escape
# Draw the cluster inlet
GiD_Process Mescape Geometry Create Object Rectangle -2 -2 6 2 2 6 escape
# Draw the volume meshed with spheres
GiD_Process Mescape Geometry Create Object Sphere 0 0 2 1 escape escape

# Group creation
GiD_Groups create "Floor"
GiD_Groups create "Inlet"
#GiD_Groups create "ClusterInlet"
GiD_Groups create "Body"

# Group assignation
GiD_EntitiesGroups assign "Floor" surfaces 1
GiD_EntitiesGroups assign "Inlet" surfaces 2
#GiD_EntitiesGroups assign "ClusterInlet" surfaces 3
GiD_EntitiesGroups assign "Body" volumes 1
}

proc ::DEM::examples::SpheresDropForTest::AssignToTree { } {
# Material
set DEMmaterials [spdAux::getRoute "DEMMaterials"]
set props [list PARTICLE_DENSITY 2500.0 YOUNG_MODULUS 1.0e6]
set material_node [[customlib::GetBaseRoot] selectNodes "$DEMmaterials/blockdata\[@name = 'DEM-DefaultMaterial' \]"]
spdAux::SetValuesOnBaseNode $material_node $props

# DParts
set DEMParts [spdAux::getRoute "DEMParts"]/condition\[@n='Parts_DEM'\]
set DEMPartsNode [customlib::AddConditionGroupOnXPath $DEMParts Body]
$DEMPartsNode setAttribute ov volume
set props [list Material "DEM-DefaultMaterial"]
spdAux::SetValuesOnBaseNode $DEMPartsNode $props

# WallParts
set FEMParts_floor [spdAux::getRoute "DEMParts"]/condition\[@n='Parts_FEM'\]
set FEMParts_floorNode [customlib::AddConditionGroupOnXPath $FEMParts_floor Floor]
$FEMParts_floorNode setAttribute ov surface
set props [list Material "DEM-DefaultMaterial"]
spdAux::SetValuesOnBaseNode $FEMParts_floorNode $props


# BC over floor
set FloorBC {container[@n='DEM']/container[@n='BoundaryConditions']/condition[@n='FEMVelocity']}
#Velocity over walls is the name on the tree (pn)
set FloorBCNode [customlib::AddConditionGroupOnXPath $FloorBC Floor]
$FloorBCNode setAttribute ov surface
set props [list selector_component_X ByValue value_component_X 1.0 selector_component_Y ByValue value_component_Y 0.0 selector_component_Z ByValue value_component_Z 0.0 Interval Total]
spdAux::SetValuesOnBaseNode $FloorBCNode $props


# InletPart
set FEMParts_inlet [spdAux::getRoute "DEMParts"]/condition\[@n='Parts_FEM'\]
set FEMParts_inletNode [customlib::AddConditionGroupOnXPath $FEMParts_inlet Inlet]
$FEMParts_inletNode setAttribute ov surface
set props [list Material "DEM-DefaultMaterial"]
spdAux::SetValuesOnBaseNode $FEMParts_inletNode $props

# BC over Inlet
set InletBC {container[@n='DEM']/container[@n='BoundaryConditions']/condition[@n='FEMVelocity']}
#Velocity over walls is the name on the tree (pn)
set InletBCNode [customlib::AddConditionGroupOnXPath $InletBC Inlet]
$InletBCNode setAttribute ov surface
set props [list selector_component_X ByValue value_component_X 2.0 selector_component_Y ByValue value_component_Y 0.0 selector_component_Z ByValue value_component_Z 0.0 Interval Total]
spdAux::SetValuesOnBaseNode $InletBCNode $props

# Inlet
set InletVars {container[@n='DEM']/container[@n='Particle Injectors']/condition[@n='DEMInlet']}
set InletVarsNode [customlib::AddConditionGroupOnXPath $InletVars Inlet]
$InletVarsNode setAttribute ov surface
set props [list Material "DEM-DefaultMaterial" ParticleDiameter 0.13 InVelocityModulus 2.3 InDirectionVector "0.0,0.0,-1.0"]
spdAux::SetValuesOnBaseNode $InletVarsNode $props



# # ClusterInlet
# set DEMClusterInlet "$DEMConditions/condition\[@n='Inlet'\]"
# set inletNode [customlib::AddConditionGroupOnXPath $DEMClusterInlet "ClusterInlet"]
# $inletNode setAttribute ov surface
# set props [list Material "DEM-DefaultMaterial" InletElementType "Cluster3D" ClusterType "Rock1Cluster3D" ParticleDiameter 0.13 InVelocityModulus 2.3 InDirectionVector "0.0,0.0,1.0"]

# spdAux::SetValuesOnBaseNode $inletNode $props

# # DEM custom submodelpart
# set custom_dem "$DEMConditions/condition\[@n='DEM-CustomSmp'\]"
# set customNode [customlib::AddConditionGroupOnXPath $custom_dem Body]
# $customNode setAttribute ov volume

# # General data
# # Time parameters
# set change_list [list EndTime 5 DeltaTime 1e-5 NeighbourSearchFrequency 50]
# set xpath [spdAux::getRoute DEMTimeParameters]
# spdAux::SetValuesOnBasePath $xpath $change_list

spdAux::RequestRefresh
}

proc ::DEM::examples::SpheresDropForTest::AssignMeshSize { } {
GiD_Process Mescape Meshing ElemType Sphere Volumes 1 escape
GiD_Process Mescape Meshing AssignSizes Volumes 0.2 1:end escape escape escape
GiD_Process Mescape Meshing AssignSizes Surfaces 0.2 1:end escape escape escape
GiD_Process Mescape Meshing AssignSizes Lines 0.2 1:end escape escape escape
}

3 changes: 3 additions & 0 deletions kratos.gid/apps/DEM/examples/examples.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,7 @@
<Example id="DEMDrop3D" app="DEM" logo="SpheresDrop.png" name="DEM spheres drop 3D" dim="3D" cmd="::DEM::examples::SpheresDrop::Init">
<Description></Description>
</Example>
<Example id="DEMDrop3DTest" app="DEM" logo="SpheresDrop.png" name="Test new interface" dim="3D" cmd="::DEM::examples::SpheresDropForTest::Init">
<Description></Description>
</Example>
</Group>
3 changes: 2 additions & 1 deletion kratos.gid/apps/DEM/write/write.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,9 @@ proc ::DEM::write::Init { } {
SetAttribute properties_location [::DEM::GetWriteProperty properties_location]
SetAttribute parts_un [::DEM::GetUniqueName parts]
SetAttribute materials_un [::DEM::GetUniqueName materials]
SetAttribute init_conditions_un [::DEM::GetUniqueName init_conditions]
SetAttribute conditions_un [::DEM::GetUniqueName conditions]
SetAttribute nodal_conditions_un [::DEM::GetUniqueName nodal_conditions]
SetAttribute loads_un [::DEM::GetUniqueName loads]
SetAttribute materials_file [::DEM::GetWriteProperty materials_file]
SetAttribute main_launch_file [::DEM::GetAttribute main_launch_file]

Expand Down
Loading