Page 313 - Process Modelling and Simulation With Finite Element Methods
P. 313

300        Process Modelling and Simulation with Finite Element Methods

         Before setting up the problem, we need to define all the constants to be used in
         the  simulation.  Pull down the Options menu  and select Add/Edit constants.
         The AddEdit constants dialog box appears.
              Add/Edit Constants

                 0   Name of constant: rhod        Expression: 1
                 0   Name of constant: rhoc        Expression: 10
                 0   Name of constant: nu          Expression: 1
                     Name of constant: gy          Expression: -10
                     Name of constant: dadd        Expression: 0.005
                 0   Name of constant: n           Expression: 100
                 0   Name of constant: sigma       Expression: 1
                 0   Apply /  OK
         It is useful to define some expressions,  i.e. intermediate variables, to make the
         FEM data entry more concise. Pull down the Options menu and select AddEdit
          expressions.  Expressions  can be functions of the dependent variables  (u,v,p,
          and  phi).   Contant  expressions  can  be  defined  in  the  AddEdit  Constants
         dialogue box.


             Add/Edit Expressions
                 0   Variable name: smhs
                    Variable type: subdomain then Add
                 0
                    Now click on the definition tab
                 0
                 0   Enter expression: (l+tan(n*phi))/2
                    Variable name: smdelta
                 0
                    Variable type: subdomain then Add
                 0
                    Now click on the definition tab.
                    Enter expression: n/sqrt(pi)*exp(-nA2*phiA2)
                 0   Variable name: kappa
                    Variable type: subdomain then Add
                 0
                 0   Now click on the definition tab
                    Enter expression: (phiyA2*phixx-2*phix*phiy*phixy
                 0
                    +phiyy*phix"2)/(phixA2+phiyA2)"(  3/2)
                 0   Variable name: rO
                    Variable type: subdomain then Add
                 0
                    Now click on the definition tab
                    Enter expression: rhod + rhoc*smhs
                 0   Apply
                 0   OK
   308   309   310   311   312   313   314   315   316   317   318