Skip to content

Dem/homogenization #892

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

Closed
wants to merge 4 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
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
7 changes: 7 additions & 0 deletions kratos.gid/apps/DEM/write/writeProjectParameters.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,13 @@ proc ::DEM::write::getParametersDict { } {
dict set project_parameters_dict "SearchTolerance" [write::getValue AdvOptions SearchTolerance]
dict set project_parameters_dict "GraphExportFreq" [write::getValue DGraphs GraphExportFreq]
dict set project_parameters_dict "VelTrapGraphExportFreq" 1e-3
dict set project_parameters_dict "FilterType" "Linear"

set homogenization_settings_dict [dict create]
dict set homogenization_settings_dict "active" [write::getValue DEMHomogenizationDomain Active]
dict set homogenization_settings_dict "geometry_source" [write::getValue DEMHomogenizationDomain GeometrySource]
dict set homogenization_settings_dict "element_size" [write::getValue DEMHomogenizationDomain ElementSize]
dict set project_parameters_dict "homogenization_utility_settings" $homogenization_settings_dict

# Output timestep
set output_criterion [write::getValue DEMResults DEM-OTimeStepType]
Expand Down
5 changes: 5 additions & 0 deletions kratos.gid/apps/DEM/xml/SolutionStrategy.spd
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@
<value n="ScreenInfoOutput" v="5" pn="Info screen output" icon="black1" help="Interval to deliver onscreen information on the running process (in seconds)"/>
<value n="NeighbourSearchFrequency" v="50" pn="Search frequency" icon="black1" help="Search for new particle or wall neighbours. Set its value to '10': a single search will be computed out every ten steps"/>
</container>
<container n="HomogenizationDomain" un="DEMHomogenizationDomain" pn="Homogenization domain settings" help="Use it to project the discrete element results onto a continuous domain to analyze continuous results" icon="piec" open_window="0">
<value n="Active" values="No,Yes" pn="Active" icon="black1" help="This option to activate or deactivate this tool"/>
<value n="GeometrySource" values="BoundingBox" pn="Bounding Box" icon="black1" help="Choose the geometry of the domain where to project to"/>
<value n="ElementSize" v="1.0" pn="Element Size" icon="black1" help="Size of the elements disctretizing the homogenization domain"/>
</container>
<include n="Parallelism" active="1" path="apps/Common/xml/Parallelism.spd"/>
<dynamicnode command="spdAux::injectSolvers" args=""/>
</container>