Procedure calculates reactions in simple beam under uniformly distributed load. Support A is considered left, support B is right.
General information
Procedure BeamType1_UDL_Reactions
calculates reactions [N] in simple beam. Support A is considered left, support B is right. You can use this routine in your applications and reports during linear static analysis.
General equations:
Recommended units of measurement
- a, b, L, Lw, x — meter [m];
- w — newton per meter [N/m];
- Ra, Rb — newton [N].
DLL
dystlab.mechanics.dll
Usage format (Pascal)
procedure BeamType1_UDL_Reactions(w, a, b, L: Double; var Ra, Rb: Double); stdcall; external [DllName];
Parameters:
- w — intensity of the unirformly distributed load [N/m];
- a — distance between start point of the load and support A [m];
- b — distance between end of the load and support B [m];
- L — beam length [m];
- Ra — reaction (force) at support A [N];
- Rb — reaction (force) at support B [N].
Return value
Procedure returns in Ra, Rb correspondent reactions [N]. If errors (for example, L<0), procedure returns Ra=0 and Rb=0.
Directives
- DllName — library name. If DLL included in installation pack, then DllName is 'dystlab.mechanics.dll'.
Example for TechEditor
Next code calls routine from DLL and shows standard message box. Code can be used in applications for TechEditor 1.0.7 and higher.
uses
Classes, Dialogs;
procedure BeamType1_UDL_Reactions(w, a, b, L: Double; var Ra, Rb: Double); stdcall; external 'dystlab.mechanics.dll';
var
Ra, Rb: Double;
begin
BeamType1_UDL_Reactions(1.5, 0, 0, 2.0, Ra, Rb); ShowMessage('Ra=' + FloatToStr(Ra) + '; Rb=' + FloatToStr(Rb)); end;