WRApplication
External kratos "application" for multiscale time integration.
DatasetTransform Class Reference

Fetch, transform and assign data between ModelPart s. More...

Inheritance diagram for DatasetTransform:
Collaboration diagram for DatasetTransform:

Public Member Functions

None Execute (self)
 
"DatasetTransform" Factory (cls, "WRApp.AsyncSolver" solver, KratosMultiphysics.Parameters parameters)
 Factory function creating a DatasetTransform from a set of standard arguments. More...
 
KratosMultiphysics.Parameters GetDefaultParameters (cls)
 

Detailed Description

Fetch, transform and assign data between ModelPart s.

@classname DatasetTransform

This operation consists of 3 subtasks: 1) Fetch variables from the source ModelPart. 2) Transform fetched data (implemented by derived classes). 3) Assign the transformed data to the target ModelPart.

Fetching and assigning data can only be performed on variables, but the source and target variables need not be the same variable, or even be defined on the same entity types.

Default parameters:

{
"source" : [], // <== source datasets
"transform" : {}, // <== transform parameters (required by derived classes)
"targets" : [] // <== target datasets
}

Source and target variables can be defined in the same manner, specifying the entity types they belong to ("nodal_historical", "nodal", "element", or "condition") and the name of the variable. The number of source and target variables must be equal, as each transformed source dataset is assigned to the target dataset at the matching position. Example for DatasetMap:

{
"sources" : [
{
"model_part_name" : "SolidInterface",
"container_type" : "nodal_historical",
"variable_name" : "REACTION"
}
],
"transform" : {
"mapper_parameters" : {
"mapper_type" : "nearest_neighbor"
}
"swap_signs" : true
},
"targets" : [
{
"model_part_name" : "SolidInterface",
"container_type" : "nodal",
"variable_name" : "TRACTION"
}
] // "targets"
}

The example parameters above configure DatasetMap to fetch data from the REACTION historical variable defined on the nodes of the "FluidInterface" model part, maps it to the nearest neighbour in the target model part, and assign it to the TRACTION non-historical variable defined on the nodes of the "SolidInterface" model part.

Member Function Documentation

◆ Execute()

None Execute (   self)

◆ Factory()

"DatasetTransform" Factory (   cls,
"WRApp.AsyncSolver"  solver,
KratosMultiphysics.Parameters  parameters 
)

Factory function creating a DatasetTransform from a set of standard arguments.

Derived classes with non-standard constructors must override this function.

Reimplemented in DatasetMap.

◆ GetDefaultParameters()

KratosMultiphysics.Parameters GetDefaultParameters (   cls)

The documentation for this class was generated from the following file: