Page 367 - TransAT_Tutorial_Manual
P. 367

TransAT Tutorial Manual                                                   9.1. Water suction






























                                       Figure 9.6: Mass of water in domain over time


               Overview of mass output UDF The time and the mass of water in the domain at the
               different time steps have been stored as vector attributes. For this purpose, the following lines
               were added in the private attribute section of the mass output class declaration:
               std::vector<double> Time;
               std::vector<double> Mass;

               Two functions are declared in the public section of the mass output class declaration

                   • update time mass: appends time and mass to Time and Mass vectors when called

                   • write time mass: writes Time and Mass vectors to a file

               Description of mass output.cxx      The two functions mentioned above are defined in mass output.cxx.


                   update time mass function The update time mass function can be split into 3 distinct
               parts

                   • Part 1: variable declarations

                   • Part 2: access and processing of TransAT data

                   • Part 3: data communication






                c 
Ascomp AG Switzerland                    357                                  Version 5.7
   362   363   364   365   366   367   368   369   370   371   372