Field output

class edelweissmeshfree.fieldoutput.fieldoutput.MPMFieldOutputController(*args, **kwargs)[source]

The central module for managing field outputs, which can be used by output managers.

Methods

addExpressionFieldOutput(associatedSet, ...)

Add a new FieldOutput entry to be computed during the simulation

addPerElementFieldOutput(name, elSet[, ...])

Add a new FieldOutput entry to be computed during the simulation

addPerMaterialPointFieldOutput(name, ...[, ...])

addPerNodeFieldOutput(name, nodeField[, ...])

Add a new FieldOutput entry to be computed during the simulation

finalizeIncrement()

Finalize all field outputs at the end of an increment.

finalizeJob()

Finalize all field outputs at the end of a job.

finalizeStep()

Finalize all field outputs at the end of a step.

initializeStep(step)

Initalize an step.

addPerParticleFieldOutput

initializeJob

addPerMaterialPointFieldOutput(name, materialPointSet, result=None, saveHistory=False, f_x=None, export=None, fExport_x=None, reshape_to_dimensions=None)[source]
Parameters:
  • name (str) – The name of this FieldOutput.

  • nodeField – The :class:`NodeField, on which this FieldOutput should operate.

  • resultName – The name of the result entry in the :class:`NodeField

  • saveHistory (bool) – If the history of the results should be saved.

  • f_x – The function to apply to the results.

  • export (str) – Whether to export the results.

  • fExport_x – The function to apply to the exported results.

  • reshape_to_dimensions (int) – If the result should be reshaped to certain dimensions (e.g. for tensor results).

  • materialPointSet (MaterialPointSet)

  • result (str)

class edelweissmeshfree.fieldoutput.fieldoutput.MaterialPointFieldOutput(name, mpSet, resultName, model, journal, saveHistory=False, f_x=typing.Callable, export=None, fExport_x=typing.Callable, reshape_to_dimensions=None)[source]

A FieldOutput for material points.

Parameters:
  • name (str) – The name of this FieldOutput.

  • mpSet (MaterialPointSet) – The :class:`MaterialPointSet on which this FieldOutput operates.

  • resultName (str) – The name of the result entry in the :class:`ElementBase.

  • model (MPMModel) – The :class:`MPMModel tree instance.

  • journal (Journal) – The :class:`Journal instance for logging.

  • saveHistory (bool) – If the history of the results should be saved.

  • f_x – The function to apply to the results.

  • export (str) – Whether to export the results.

  • fExport_x – The function to apply to the exported results.

  • reshape_to_dimensions (int) – If the result should be reshaped to certain dimensions (e.g. for tensor results).

Methods

finalizeIncrement()

Finalize an increment, i.e. store the current results.

getLastResult()

Get the last result, no matter if the history is stored or not.

getResultHistory()

Get the history.

getTimeHistory()

Get the time history.

initializeJob()

Initalize everything.

setResults(values)

Modifies a result at it's origin, if possible.

updateResults(model)

Update the field output.

writeLastResult()

Update file output.

finalizeJob

finalizeStep

initializeStep

updateResults(model)[source]

Update the field output. Will use the current solution and reaction vector if result is a nodal result.

Parameters:

model (MPMModel) – The model tree.

class edelweissmeshfree.fieldoutput.fieldoutput.ParticleFieldOutput(name, pSet, resultName, model, journal, saveHistory=False, f_x=typing.Callable[[numpy.ndarray], numpy.ndarray], export=None, fExport_x=typing.Callable[[numpy.ndarray], numpy.ndarray], reshape_to_dimensions=None)[source]

A FieldOutput for material points.

Parameters:
  • name (str) – The name of this FieldOutput.

  • pSet (ParticleSet) – The :class:`ParticleSet on which this FieldOutput operates.

  • resultName (str) – The name of the result entry in the :class:`ElementBase.

  • model (MPMModel) – The :class:`MPMModel tree instance.

  • journal (Journal) – The :class:`Journal instance for logging.

  • saveHistory (bool) – If the history of the results should be saved.

  • f_x – The function to apply to the results.

  • export (str) – Whether to export the results.

  • fExport_x – The function to apply to the exported results.

  • reshape_to_dimensions (int) – If the result should be reshaped to certain dimensions (e.g. for tensor results).

Methods

finalizeIncrement()

Finalize an increment, i.e. store the current results.

getLastResult()

Get the last result, no matter if the history is stored or not.

getResultHistory()

Get the history.

getTimeHistory()

Get the time history.

initializeJob()

Initalize everything.

setResults(values)

Modifies a result at it's origin, if possible.

updateResults(model)

Update the field output.

writeLastResult()

Update file output.

finalizeJob

finalizeStep

initializeStep

updateResults(model)[source]

Update the field output. Will use the current solution and reaction vector if result is a nodal result.

Parameters:

model (MPMModel) – The model tree.