Difference between revisions of "LoadControl Custom Task"

From OSUPDOCS
Jump to navigation Jump to search
Line 1: Line 1:
A [[MPM Input Files#Custom Tasks|custom task]] to adjust velocity of Rigid particles to match an inputted function.
A [[MPM Input Files#Custom Tasks|custom task]] to adjust velocity of Rigid particles to achieve a load put on them. .
__TOC__
__TOC__
== Introduction ==
== Introduction ==
Line 5: Line 5:
A <tt>LoadControl</tt> custom task can either monitor  [[MPM Global Archiving Options|global archive quantity]] and responds as follows:
A <tt>LoadControl</tt> custom task can either monitor  [[MPM Global Archiving Options|global archive quantity]] and responds as follows:


# Crack length monitoring: Once any crack or a specified crack reaches a specified crack length, all [[Crack Propagation Commands|crack propagation]] stops and the task's action is triggered
# Global quantity monitoring: Once the specified global quantity passes a critical value, the task's action is triggered.


The possible task actions are to reverse various boundary conditions, hold at current boundary conditions, stop the analysis, or continue (with no change except crack propagation stops).
The possible task actions are to reverse various boundary conditions, hold at current boundary conditions, stop the analysis, or continue (with no change except crack propagation stops).
Line 15: Line 13:


  CustomTask LoadControl
  CustomTask LoadControl
  Parameter maxLength,(length)
  Parameter velocity, (velocity)
  Parameter crackNumber,(number)
  Parameter material, (int)
  Parameter style,(style)
  Parameter direction, (int)
  Parameter hold,(holdTIme)
  Parameter MaxVelocity,(number)
  Parameter Load_Function (user-inputted function)
CustomTask ReverseLoad
  Parameter Kp,(number)
Parameter quantity,(quant)
  Parameter Ki,(number)
  Parameter material,(matOrBCID)
  Parameter smooth,(number)
  Parameter maxValue,(value)
  Parameter style,(style)
  Parameter hold,(holdTIme)


In <tt>XML</tt> files, these two task options are scheduled using <tt><Schedule></tt> elements, which must be within the single <tt><CustomTasks></tt> block:
In <tt>XML</tt> files, these two task options are scheduled using <tt><Schedule></tt> elements, which must be within the single <tt><CustomTasks></tt> block:


  <Schedule name='ReverseLoad'>
  <Schedule name='LoadControl'>
    <Parameter name='maxLength'>(length)</Parameter>
 
     <Parameter name='crackNumber'>(number)</Parameter>
     <Parameter name='velocity'>(number)</Parameter>
     <Parameter name='style'>(styleNumber)</Parameter>
     <Parameter name='material'>(int)</Parameter>
     <Parameter name='hold'>(holdTime)</Parameter>
     <Parameter name='direction'>(int)</Parameter>
</Schedule>
     <Parameter name='Load_Function (function)'/>
     <Parameter name='Kp'>(number)</Parameter>
<Schedule name='ReverseLoad'>
     <Parameter name='Ki'>(number)</Parameter>
     <Parameter name='global (quant)'/>
     <Parameter name='smooth'>(number)</Parameter>
     <Parameter name='mat'>(matOrBCNum)</Parameter>
     <Parameter name='maxValue'>(value)</Parameter>
     <Parameter name='style'>(styleNumber)</Parameter>
    <Parameter name='hold'>(holdTime)</Parameter>
  </Schedule>
  </Schedule>


When the task triggers on crack length, these two parameters determine its trigger point:
When the task triggers on crack length, these two parameters determine its trigger point:

Revision as of 14:37, 26 April 2016

A custom task to adjust velocity of Rigid particles to achieve a load put on them. .

Introduction

A LoadControl custom task can either monitor global archive quantity and responds as follows:


The possible task actions are to reverse various boundary conditions, hold at current boundary conditions, stop the analysis, or continue (with no change except crack propagation stops).

Task Scheduling

In scripted files, a ReverseLoad custom task based on crack lengths or on a global archive quantity are scheduled with one of the two following blocks:

CustomTask LoadControl
Parameter velocity, (velocity)
Parameter material, (int)
Parameter direction, (int)
Parameter MaxVelocity,(number)
Parameter Load_Function (user-inputted function)
Parameter Kp,(number)
Parameter Ki,(number)
Parameter smooth,(number)

In XML files, these two task options are scheduled using <Schedule> elements, which must be within the single <CustomTasks> block:

<Schedule name='LoadControl'>
   <Parameter name='velocity'>(number)</Parameter>
   <Parameter name='material'>(int)</Parameter>
   <Parameter name='direction'>(int)</Parameter>
   <Parameter name='Load_Function (function)'/>
   <Parameter name='Kp'>(number)</Parameter>
   <Parameter name='Ki'>(number)</Parameter>
   <Parameter name='smooth'>(number)</Parameter>
</Schedule>


When the task triggers on crack length, these two parameters determine its trigger point:

  • (length) - specifies the maximum crack length (in length units). Once this length is reached, all crack propagation will stop.
  • (number) - gives the crack number to watch. When that crack reaches the specified maximum length, the task will take effect. Alternatively, (number) can be zero which causes the task to take effect when any crack reaches the specified maximum length. The default value is 0 or to watch all cracks.

When the task triggers on a global archive quantity, these parameters determine its trigger point

  • (quant) - gives the name of the global archive quantity to use a trigger. In XML files, the quantiy name must be embedded in the parameter name, such as 'global sxx'.
  • (matOrBCID) - if the desired global archive quantity is defined for a specific material or for a specific boundary condition, you must enter that material ID or boundary condition ID in this parameter (otherwise the entered quantity will not match the global archive quantity).
  • (matOrBCNum) - in XML files, the specific material or boundary condition ID must be specified by number (in cannot use a material ID).
  • (value) - specifies the critical value for the global archive quantity to trigger the task action. If the number is positive, the action is triggered when the quantity reaches the value; if it is negative, the action is triggered when the quantity become more negative than the value.

Task Action

Once the specified crack length is reached (and all crack propagation stops) or the critical global archive quantity is reached, the task performs various actions specified by the (style) and (hold) parameters. Scripted files can enter text for the style, but XML files must use the (styleNumber):

The default (style) is to reverse loads, tractions, and particles to unload the specimen (as implied by the task name). Notice that reverse and hold affects only selected types of boundary conditions. The task has no affect on other types of boundary conditions.

If (holdTime) is set to a positive number, it gives a time (in alt time units) to hold at current conditions before applying the task's action. The (hold) parameter only applies when (style) is reverse or abort. The hold phase will only hold boundary conditions that can be reversed (see reverse optoins above). After the hold phase is done, the reverse style will unload to zero as described above and the abort style will stop the analysis. The default (holdTime) is zero (or no hold phase).