Difference between revisions of "FluidSource"

From OSUPDOCS
Jump to navigation Jump to search
(Blanked the page)
 
Line 1: Line 1:
A [[MPM Input Files#Custom Tasks|custom task]] to inject fluid particles at given point.
__TOC__
== Introduction ==


== Task Scheduling ==
In scripted files, a <tt>FluidSource</tt> custom task is scheduled using
CustomTask FluidSource
Parameter material,(matID)
Parameter source_x,(number)
Parameter source_y, (number)
Parameter inlet_width,(number)
Parameter FlowRate,(number) or (user defined function)
Parameter x_min,(number)
Parameter x_max,(number)
Parameter y_min,(number)
Parameter y_max,(number)
Parameter FlowAngle,(radians)
Parameter particle_size,(number)
In <tt>XML</tt> files, this task is scheduled using a <tt><Schedule></tt> element, which must be within the single <tt><CustomTasks></tt> block:
<Schedule name='FluidSource'>
  <Parameter name='material'>(matID)</Parameter>
  <Parameter name='source_x'>(number)</Parameter>
  <Parameter name='source_y'>(number)</Parameter>
  <Parameter name='FlowRate'>(number or function)</Parameter>
  <Parameter name='inlet_width'>(number)</Parameter>
  <Parameter name='x_min'>(number)</Parameter>
  <Parameter name='x_max'>(number)</Parameter>
  <Parameter name='y_min'>(number)</Parameter>
  <Parameter name='y_max'>(number)</Parameter>
  <Parameter name='FlowAngle'>(radians)</Parameter>
  <Parameter name='particle_size'>(number)</Parameter>
</Schedule>
where the parameters are:
* <tt>material</tt> - The material ID of material to inject.
* <tt>source_x</tt> - Location of inlet center.
* <tt>source_y</tt> - Location of inlet center.
* <tt>FlowRate</tt> - A constant or function to set flow rate of inlet in mm^3/s
* <tt>inlet_width</tt> - Width of inlet orthogonal to flow direction.
Set up tank location and size
* <tt>x_min</tt> -
* <tt>x_max</tt>
* <tt>y_min</tt>
* <tt>y_max</tt>
Optional parameters
* <tt>FlowAngle</tt> -  The angle of the incoming flow with the positive x-axis.
* <tt>particle_size</tt> - Experimental feature to change the particle size when injected. Setting to 0.5 doubles the particles per cells in one direction.
== Material Support ==
This custom task can be used with any material. However, it attempts to initialize pressure when particles are introduced. So it makes more sense to use with materials that track pressure separately. Example materials:
* [[Ideal Gas Material|IdealGas]]
* [[Tait Liquid Material|TaitLiquid]]

Latest revision as of 13:07, 6 March 2018