Configuration
A configuration data object is passed down to all HydraxMPM
objects. This pre-allocates necessary memory for simulations.
Two config types are available:
MPMConfig
: For Material Point Method (MPM) simulations.IPConfig
: For single integration point element tests.
Modifying config
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor massa, nec semper lorem quam in massa.
MPMConfig
__init__(origin, end, cell_size, num_points=0, shapefunction='cubic', ppc=1, num_steps=0, store_every=0, dt=0.0, default_gpu_id=None, project='', device=None, **kwargs)
Parameters:
-
origin
(list
) –domain start
-
end
(list
) –domain end
-
cell_size
(float
) –cell size of grid
-
num_points
(int
, default:0
) –number of material points. Defaults to 0.
-
shapefunction
(str
, default:'cubic'
) –Shapefunction type, select:["cubic","linear"]. Defaults to "cubic".
-
ppc
(int
, default:1
) –number of particles discretized per cell. Defaults to 1.
-
num_steps
(int
, default:0
) –number of steps to run. Defaults to 0.
-
store_every
(int
, default:0
) –output every nth step. Defaults to 0.
-
dt
(float
, default:0.0
) –constant time step. Defaults to 0.0.
-
default_gpu_id
(int
, default:None
) –default gpu to run on. Defaults to None.
-
project
(str
, default:''
) –project name. Defaults to "".
-
device
(int
, default:None
) –sharding (not implemented yet). Defaults to None.
print_summary()
Print a basic summary of the config
IPConfig
__init__(origin, end, cell_size, num_points=0, shapefunction='cubic', ppc=1, num_steps=0, store_every=0, dt=0.0, default_gpu_id=None, project='', device=None, **kwargs)
Parameters:
-
origin
(list
) –domain start
-
end
(list
) –domain end
-
cell_size
(float
) –cell size of grid
-
num_points
(int
, default:0
) –number of material points. Defaults to 0.
-
shapefunction
(str
, default:'cubic'
) –Shapefunction type, select:["cubic","linear"]. Defaults to "cubic".
-
ppc
(int
, default:1
) –number of particles discretized per cell. Defaults to 1.
-
num_steps
(int
, default:0
) –number of steps to run. Defaults to 0.
-
store_every
(int
, default:0
) –output every nth step. Defaults to 0.
-
dt
(float
, default:0.0
) –constant time step. Defaults to 0.0.
-
default_gpu_id
(int
, default:None
) –default gpu to run on. Defaults to None.
-
project
(str
, default:''
) –project name. Defaults to "".
-
device
(int
, default:None
) –sharding (not implemented yet). Defaults to None.
print_summary()
Print a basic summary of the config
Integration Point Config