Difference between revisions of "FluidSource"

From OSUPDOCS
Jump to navigation Jump to search
Line 18: Line 18:
  Parameter y_min,(number)
  Parameter y_min,(number)
  Parameter y_max,(number)
  Parameter y_max,(number)
  Parameter FlowAngle,(number)
  Parameter FlowAngle,(radians)
  Parameter particle_size,(number)
  Parameter particle_size,(number)


Line 27: Line 27:
  <Schedule name='FluidSource'>
  <Schedule name='FluidSource'>
   <Parameter name='material'>(matID)</Parameter>
   <Parameter name='material'>(matID)</Parameter>
   <Parameter name='source_x'>(x)</Parameter>
   <Parameter name='source_x'>(number)</Parameter>
   <Parameter name='source_y'>(y)</Parameter>
   <Parameter name='source_y'>(number)</Parameter>
   <Parameter name='FlowRate'>10000000</Parameter>
   <Parameter name='FlowRate'>(number or function)</Parameter>
   <Parameter name='FlowAngle'>0</Parameter>
   <Parameter name='inlet_width'>(number)</Parameter>
   <Parameter name='inlet_width'>100</Parameter>
   <Parameter name='x_min'>(number)</Parameter>
 
   <Parameter name='x_max'>(number)</Parameter>
   <Parameter name='x_min'>0</Parameter>
   <Parameter name='y_min'>(number)</Parameter>
   <Parameter name='x_max'>750</Parameter>
   <Parameter name='y_max'>(number)</Parameter>
   <Parameter name='y_min'>0</Parameter>
   <Parameter name='FlowAngle'>(radians)</Parameter>
   <Parameter name='y_max'>200</Parameter>
   <Parameter name='particle_size'>(number)</Parameter>
   <Parameter name='particle_size'>(size)</Parameter>
  </Schedule>
  </Schedule>


Line 43: Line 42:
where the parameters are:
where the parameters are:


* <tt>material</tt> The material ID of material to inject.
* <tt>material</tt> - The material ID of material to inject.
* <tt>(Cvel)</tt>
* <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 ==
== Material Support ==


This custom task can be used with any material and respond to material point velocities.  
This custom task can be used with any material. However, it attempts to initialize pressure when particles are introduced. So it makes more since to use with materials that track pressure separate. Example materials:
 
* [[Ideal Gas Material|IdealGas]]
* [[Ideal Gas Material|IdealGas]]
* [[Tait Liquid Material|TaitLiquid]]
* [[Tait Liquid Material|TaitLiquid]]

Revision as of 16:54, 6 November 2017

A custom task to inject fluid particles at given point.

Introduction

Task Scheduling

In scripted files, a FluidSource 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 XML files, this task is scheduled using a <Schedule> element, which must be within the single <CustomTasks> 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:

  • material - The material ID of material to inject.
  • source_x - Location of inlet center.
  • source_y - Location of inlet center.
  • FlowRate - A constant or function to set flow rate of inlet in mm^3/s
  • inlet_width - Width of inlet orthogonal to flow direction.

Set up tank location and size

  • x_min -
  • x_max
  • y_min
  • y_max

Optional parameters

  • FlowAngle - The angle of the incoming flow with the positive x-axis.
  • particle_size - 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 since to use with materials that track pressure separate. Example materials: