You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Should the user be able to define conditions applied on DEM particles directly over the mesh?
Currently, the code is limited to applying it on geometry mode, as stated in:
proc DEM::write::GetSpheresGroupsListInConditions { } {
set conds_groups_dict [dict create ]
set groups [list ]
# Get all the groups with spheres
foreach group [GetSpheresGroups] {
foreach surface [GiD_EntitiesGroups get $group elements] {
foreach involved_group [GiD_EntitiesGroups entity_groups elements $surface] {
set involved_group_id [write::GetWriteGroupName $involved_group]
if {$involved_group_id ni $groups} {lappend groups $involved_group_id}
}
}
}
# Find the relations condition -> group
set xp1 "[spdAux::getRoute [GetAttribute conditions_un]]/condition"
foreach cond [[customlib::GetBaseRoot] selectNodes $xp1] {
set condid [$cond @n]
foreach cond_group [$cond selectNodes "group"] {
set group [write::GetWriteGroupName [$cond_group @n]]
if {$group in $groups} {dict lappend conds_groups_dict $condid [$cond_group @n]}
}
}
return $conds_groups_dict
}
Once this question is settled, if we decide to allow applying conditions over mesh, notice that in mesh mode one can apply conditions over 4 items: nodes, l elements, s elements and v elements.
The text was updated successfully, but these errors were encountered:
foreach group [GetSpheresGroups] {
foreach surface [GiD_EntitiesGroups get $group elements] {
foreach involved_group [GiD_EntitiesGroups entity_groups elements $surface] {
set involved_group_id [write::GetWriteGroupName $involved_group]
if {$involved_group_id ni $groups} {lappend groups $involved_group_id}
}
}
}
for:
# Get all the groups with spheres
foreach group [GetSpheresGroups] {
foreach surface [GiD_EntitiesGroups get $group nodes] {
foreach involved_group [GiD_EntitiesGroups entity_groups nodes $surface] {
set involved_group_id [write::GetWriteGroupName $involved_group]
if {$involved_group_id ni $groups} {lappend groups $involved_group_id}
}
}
}
with nodes instead of elements solve the problem.
we get the nodes instead, works both geometry mode and mesh mode.
Is it ok? It doesnt seem to cause any issue
maceligueta
changed the title
[DEM]Assigning conditions to DEM
[DEM] Assigning conditions to DEM. Possibility to assign them in Mesh Mode
Jan 23, 2020
Should the user be able to define conditions applied on DEM particles directly over the mesh?
Currently, the code is limited to applying it on geometry mode, as stated in:
Once this question is settled, if we decide to allow applying conditions over mesh, notice that in mesh mode one can apply conditions over 4 items: nodes, l elements, s elements and v elements.
The text was updated successfully, but these errors were encountered: