1 | #*------------------------------------------------------------------- |
---|
2 | * EMSO Model Library (EML) Copyright (C) 2004 - 2007 ALSOC. |
---|
3 | * |
---|
4 | * This LIBRARY is free software; you can distribute it and/or modify |
---|
5 | * it under the therms of the ALSOC FREE LICENSE as available at |
---|
6 | * http://www.enq.ufrgs.br/alsoc. |
---|
7 | * |
---|
8 | * EMSO Copyright (C) 2004 - 2007 ALSOC, original code |
---|
9 | * from http://www.rps.eng.br Copyright (C) 2002-2004. |
---|
10 | * All rights reserved. |
---|
11 | * |
---|
12 | * EMSO is distributed under the therms of the ALSOC LICENSE as |
---|
13 | * available at http://www.enq.ufrgs.br/alsoc. |
---|
14 | * |
---|
15 | *-------------------------------------------------------------------- |
---|
16 | * Sample file for hiperbolic functions. |
---|
17 | *-------------------------------------------------------------------- |
---|
18 | * Author: Gerson Balbueno Bicca |
---|
19 | * $Id: Hiperbolic_Function.mso 83 2006-12-14 20:29:34Z bicca $ |
---|
20 | *--------------------------------------------------------------------*# |
---|
21 | using "types"; |
---|
22 | |
---|
23 | #++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
24 | # |
---|
25 | # EMSO sample file of Hyperbolic functions |
---|
26 | # |
---|
27 | # -------------------------------------------- |
---|
28 | # Function | EMSO Built-In |
---|
29 | # -------------------------------------------- |
---|
30 | # Hyperbolic sine | sinh |
---|
31 | # Hyperbolic cosine | cosh |
---|
32 | # Hyperbolic tangent | tanh |
---|
33 | # Hyperbolic cotangent | coth |
---|
34 | # |
---|
35 | # |
---|
36 | #++++++++++++++++++++++++++++++++++++++++++++++++++++ |
---|
37 | |
---|
38 | FlowSheet Hyperbolic_Function |
---|
39 | |
---|
40 | PARAMETERS |
---|
41 | |
---|
42 | Pi as constant (Brief="Pi Number",Default=3.14159265); |
---|
43 | Theta as angle (Brief ="theta angle",Default=0.5); |
---|
44 | |
---|
45 | VARIABLES |
---|
46 | |
---|
47 | Hcosine as Real (Brief ="Hyperbolic cosine function"); |
---|
48 | Hsine as Real (Brief ="Hyperbolic sine function"); |
---|
49 | Htangent as Real (Brief ="Hyperbolic tangent function"); |
---|
50 | Hcotangent as Real (Brief ="Hyperbolic cotangent function"); |
---|
51 | |
---|
52 | SET |
---|
53 | |
---|
54 | Pi = 3.14159265; |
---|
55 | Theta = 0.6*Pi*"rad"; |
---|
56 | |
---|
57 | EQUATIONS |
---|
58 | |
---|
59 | Hsine = sinh(Theta); |
---|
60 | Hcosine = cosh(Theta); |
---|
61 | Htangent = tanh(Theta); |
---|
62 | Hcotangent = coth(Theta); |
---|
63 | |
---|
64 | OPTIONS |
---|
65 | |
---|
66 | mode = "steady"; |
---|
67 | |
---|
68 | end |
---|