1 #include "SinglePhase_1DRiemannProblem.cxx"
2 #include "SinglePhase_1DHeatedChannel.cxx"
3 #include "SinglePhase_1DDepressurisation.cxx"
4 #include "SinglePhase_2DWallHeatedChannel.cxx"
5 #include "SinglePhase_2DWallHeatedChannel_ChangeSect.cxx"
6 #include "SinglePhase_2DHeatedChannelInclined.cxx"
7 #include "SinglePhase_HeatedWire_2Branches.cxx"
8 #include "SinglePhase_2DLidDrivenCavity.cxx"
9 #include "SinglePhase_2DLidDrivenCavity_unstructured.cxx"
10 #include "SinglePhase_2DHeatDrivenCavity.cxx"
11 #include "SinglePhase_2DHeatDrivenCavity_unstructured.cxx"
12 #include "SinglePhase_2DSphericalExplosion_unstructured.cxx"
13 #include "SinglePhase_3DHeatDrivenCavity.cxx"
14 #include "DriftModel_1DBoilingChannel.cxx"
15 #include "DriftModel_1DBoilingAssembly.cxx"
16 #include "DriftModel_1DRiemannProblem.cxx"
17 #include "DriftModel_1DPressureLoss.cxx"
18 #include "DriftModel_1DDepressurisation.cxx"
19 #include "DriftModel_2DInclinedBoilingChannel.cxx"
20 #include "DriftModel_3DCanalCloison.cxx"
21 #include "IsothermalTwoFluid_1DSedimentation.cxx"
22 #include "IsothermalTwoFluid_1DRiemannProblem.cxx"
23 #include "IsothermalTwoFluid_1DDepressurisation.cxx"
24 #include "IsothermalTwoFluid_2DInclinedSedimentation.cxx"
25 #include "IsothermalTwoFluid_2DVidangeReservoir.cxx"
26 #include "FiveEqsTwoFluid_1DBoilingChannel.cxx"
27 #include "FiveEqsTwoFluid_1DRiemannProblem.cxx"
28 #include "FiveEqsTwoFluid_1DDepressurisation.cxx"
29 #include "FiveEqsTwoFluid_2DInclinedBoilingChannel.cxx"
30 #include "FiveEqsTwoFluid_2DInclinedSedimentation.cxx"
31 #include "DiffusionEquation_1DHeatedRod.cxx"
32 #include "TransportEquation_1DHeatedChannel.cxx"
33 #include "CoupledTransportDiffusionEquations_1DHeatedChannel.cxx"
38 int main(int argc,char **argv)
40 if(!SinglePhase_1DRiemannProblem())
41 throw CdmathException("test SinglePhase_1DRiemannProblem failed");
42 else if(!SinglePhase_1DHeatedChannel())
43 throw CdmathException("test SinglePhase_1DHeatedChannel() failed");
44 else if(!SinglePhase_1DDepressurisation())
45 throw CdmathException("test SinglePhase_1DDepressurisation() failed");
46 else if (!SinglePhase_2DLidDrivenCavity())
47 throw CdmathException("test SinglePhase_2DLidDrivenCavity failed");
48 else if (!SinglePhase_2DLidDrivenCavity_unstructured())
49 throw CdmathException("test SinglePhase_2DLidDrivenCavity_unstructured failed");
50 else if (!SinglePhase_2DHeatDrivenCavity())
51 throw CdmathException("test SinglePhase_2DHeatDrivenCavity failed");
52 else if (!SinglePhase_2DHeatDrivenCavity_unstructured())
53 throw CdmathException("test SinglePhase_2DHeatDrivenCavity_unstructured failed");
54 else if(!SinglePhase_2DWallHeatedChannel())
55 throw CdmathException("test SinglePhase_2DWallHeatedChannel() failed");
56 else if(!SinglePhase_2DWallHeatedChannel_ChangeSect())
57 throw CdmathException("test SinglePhase_2DWallHeatedChannel_ChangeSect() failed");
58 else if(!SinglePhase_2DHeatedChannelInclined())
59 throw CdmathException("test SinglePhase_2DHeatedChannelInclined() failed");
60 else if(!SinglePhase_HeatedWire_2Branches())
61 throw CdmathException("test SinglePhase_HeatedWire_2Branches() failed");
62 else if (!SinglePhase_2DSphericalExplosion_unstructured())
63 throw CdmathException("test SinglePhase_2DSphericalExplosion_unstructured failed");
64 else if (!SinglePhase_3DHeatDrivenCavity())
65 throw CdmathException("test SinglePhase_3DHeatDrivenCavity failed");
66 else if(!DriftModel_1DRiemannProblem())
67 throw CdmathException("test DriftModel_1DRiemannProblem failed ");
68 else if(!DriftModel_1DPressureLoss())
69 throw CdmathException("test DriftModel_1DPressureLoss failed ");
70 else if(!DriftModel_1DBoilingChannel())
71 throw CdmathException("test DriftModel_1DBoilingChannel failed ");
72 else if(!DriftModel_1DBoilingAssembly())
73 throw CdmathException("test DriftModel_1DBoilingAssembly failed ");
74 else if(!DriftModel_1DDepressurisation())
75 throw CdmathException("test DriftModel_1DDepressurisation failed ");
76 else if(!DriftModel_2DInclinedBoilingChannel())
77 throw CdmathException("test DriftModel_2DInclinedBoilingChannel failed ");
78 else if(!DriftModel_3DCanalCloison())
79 throw CdmathException("test DriftModel_3DCanalCloison failed ");
80 else if(!IsothermalTwoFluid_1DRiemannProblem())
81 throw CdmathException("test IsothermalTwoFluid_1DRiemannProblem failed");
82 else if(!IsothermalTwoFluid_1DSedimentation())
83 throw CdmathException("test IsothermalTwoFluid_1DSedimentation failed");
84 else if(!IsothermalTwoFluid_1DDepressurisation())
85 throw CdmathException("test IsothermalTwoFluid_1DDepressurisation failed");
86 else if(!IsothermalTwoFluid_2DInclinedSedimentation())
87 throw CdmathException("test IsothermalTwoFluid_2DInclinedSedimentation failed");
88 else if(!IsothermalTwoFluid_2DVidangeReservoir())
89 throw CdmathException("test IsothermalTwoFluid_2DVidangeReservoir failed");
90 else if(!FiveEqsTwoFluid_1DRiemannProblem())
91 throw CdmathException("test FiveEqsTwoFluid_1DRiemannProblem failed");
92 else if(!FiveEqsTwoFluid_1DBoilingChannel())
93 throw CdmathException("test FiveEqsTwoFluid_1DBoilingChannel failed");
94 else if(!FiveEqsTwoFluid_1DDepressurisation())
95 throw CdmathException("test FiveEqsTwoFluid_1DDepressurisation failed");
96 else if(!FiveEqsTwoFluid_2DInclinedBoilingChannel())
97 throw CdmathException("test FiveEqsTwoFluid_2DInclinedBoilingChannel failed ");
98 else if(!FiveEqsTwoFluid_2DInclinedSedimentation())
99 throw CdmathException("test FiveEqsTwoFluid_2DInclinedSedimentation failed ");
100 else if(!TransportEquation_1DHeatedChannel())
101 throw CdmathException("test TransportEquation_1DHeatedChannel() failed");
102 else if(!DiffusionEquation_1DHeatedRod())
103 throw CdmathException("test DiffusionEquation_1DHeatedRod() failed");
104 else if(!CoupledTransportDiffusionEquations_1DHeatedChannel())
105 throw CdmathException("test CoupledTransportDiffusionEquations_1DHeatedChannel() failed");//choose correct physical parameters to obtain good physical results
107 cout<<"All C tests successful"<<endl;