PropertySet.set(props=None, **kwargs)
Set constant and variable material data. Constant properties can be given as keyword arguments.-
Parameters:
- props: A dictionary or tuple of two dictionaries defining the data.
-
Examples:
Documentation Index
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
>>> m = db._active_model()
>>> mat = m.material_data.materials['Corecell_A450']
>>> data_dict = {'Xc' : 5.1, 'Sxy':0.3}
>>> mat['stress_limits'].set(data_dict)
>>> mat['stress_limits'].set(Xc=5.1,Sxy=0.3)
>>> m = db._active_model()
>>> mat = m.material_data.materials['Corecell_A450']
>>> data_dict = ({'rho' : [1000.0, 1020.5, 1025.0]}, {'Temperature' : ([22., 50., 150.], 25.)})
>>> mat['density'].set(data_dict)
Was this page helpful?