iota.coarsegraining
Description
This module provides functionalities to transform the discrete data from particle based simulations (e.g DPM, DEM) into continuum data.
CoarseGraining class object. This object contains the settings, the output and the run methods for a coarse-graining analysis.
Parameters
file
: (str) path and name to a coarse-graining settings file (Default: None)settings
: (dict) coarse-graining settings given as a dictionary (Default: None)dataset
: (iota.dataset.Dataset) a dataset object to be used as input dataset for the coarse-graining analysis. If provided, it overwrites the input dataset of the coarse-graining settings (Default: None)
Examples
Creating a CoarseGraining object with default settings
Creating a CoarseGraining object based on the settings in an existing coarse-graining settings file
Creating a CoarseGraining object given on an existing settings dictionary
Creating a CoarseGraining object with default settings and an existing dataset object as the input dataset
Creating a CoarseGraining object based on the settings in an existing coarse-graining settings file and using an existing dataset object as the input dataset
Creating a CoarseGraining object given on an existing settings dictionary and using an existing dataset object as the input dataset
Attributes
Get the coarse-graining settings that the user explicitly has set
Returns
A dictionary with the settings explicitly set by the user
Example
Getting the settings of a coarse-graining object
Methods
Get the default coarse-graining settings
Returns
A dictionary with the default coarse-graining settings
Example
Getting the default settings of a coarse-graining object
Get the complete coarse-graining settings that result from merging the settings explicitly set by the user and the default settings
Returns
A dictionary with the complete coarse-graining settings of the CoarseGraining object
Example
Getting the complete settings of a CoarseGraining object
Run coarse-graining transformation based on the settings of the CoarseGraining object
Example
Running the coarse-graining transformation for the CoarseGraining object
Get the dataset object that corresponds to the coarse-graining dataset generated after running the coarse-graining transformation
Return
A iota.dataset.Dataset object that corresponds to the coarse-graining dataset
Example
Getting the coarse-graining dataset generated after running coarse-graining transformation
Get a list that contains the graphs object that may have been generated as result of the coarse-graining transformation
Return
A list of iota.graph.Graph objects that correspond to the graphs generated by the coarse-graining transformation
Example
Getting the list of graph objects generated after running coarse-graining transformation
Get the dataset object that corresponds to the padem dataset that may have been generated after running the coarse-graining transformation. The padem dataset would contain the raw data of the particle based simulation in Particle Analytics format
Return
A iota.dataset.Dataset object that corresponds to the padem dataset
Example
Getting the padem dataset generated after running coarse-graining transformation
Export the settings of a given CoarseGraining object to file in json format
Parameters
file
: (str) path and name for the file where the settings will be exported to.merged
: (bool) if True, the complete coarse-graining settings are exported, i.e., the settings resulting of merging the user settings and the default ones. If False, only the user settings are exported (Default: False)
Example
Exporting the coarse-graining settings set by the user to a file
Exporting the complete coarse-graining settings to a file
Last updated
Was this helpful?