00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022 #include <iostream>
00023
00024 #include "util/array.h"
00025 #include "util/exception.h"
00026 #include "models/coupled/csubcam.h"
00027
00028 using std::cout;
00029 using std::endl;
00030
00031 int main(int argc, char **argv) try
00032 {
00034 Array<REAL> prms;
00035 prms.push_back(0.0891);
00036 prms.push_back(0.0196);
00037 prms.push_back(0.20);
00038 prms.push_back(3.2);
00039 prms.push_back(5000);
00040 prms.push_back(1.0e-4);
00041
00043 Array<REAL> idat;
00044 idat.push_back(2);
00045 idat.push_back(2);
00046 idat.push_back(2);
00047 idat.push_back(1.691);
00048 idat.push_back(1);
00049 idat.push_back(0);
00050
00052 CSubCam csc(prms, idat);
00053 cout << "Sig_ini = " << csc.Sig() << endl;
00054
00056
00057
00058 Tensor2 DSig; DSig=10,10,5, 0,0,0;
00059 REAL DPp; DPp=-2;
00060 Tensor2 DEps;
00061 REAL DnSr;
00062 csc.Actualize(DSig,DPp, DEps,DnSr);
00063
00064
00065 cout << "Sig_fin = " << csc.Sig() << endl;
00066 cout << "DEps (%) = " << DEps*100.0 << endl;
00067 cout << "DnSr = " << DnSr << endl;
00068
00069 return 0;
00070 }
00071 catch (Exception * e)
00072 {
00073 e->Cout();
00074 if (e->IsFatal()) exit(1);
00075 delete e;
00076 }
00077 catch (char const * s)
00078 {
00079 cout << "[1;31m Fatal:" << s << "[0m\n";
00080 exit(1);
00081 }
00082
00083