fixed subdomain indices, CHANGED thermalCondicutivity of ceramic

This commit is contained in:
jakob.schratter 2026-01-26 11:25:52 +01:00
commit 4c5aa92fdd
4 changed files with 5384 additions and 5388 deletions

View file

@ -31,7 +31,7 @@ int main(int argc, char **argv )
// ##########################################
double dt = 1.0; // time step
//int steps = 200; // number of time iterations
int steps = 100; // number of time iterations
double u0_mug = 18.0;
double u0_fluid = 80.0;
@ -80,7 +80,9 @@ int main(int argc, char **argv )
auto t3 = system_clock::now(); // start timer
double average_cup_temperature = u0_mug;
while (average_cup_temperature < 67)
double time_count = 0;
while (average_cup_temperature < 67.0)
//for (int step = 0; step < steps; ++step)
{
vector<double> G(Mdt.Nrows(), 0.0);
@ -96,7 +98,8 @@ int main(int argc, char **argv )
// ----- SK ----- ------ H -------
average_cup_temperature = mesh_c.AverageVectorFunction_perSubdomain(uv, 0);
cout << "Average cup temperature: " << average_cup_temperature << endl;
cout << "Average cup temperature: " << average_cup_temperature << " after " << time_count << " seconds. " << endl;
time_count += dt;
}
auto t4 = system_clock::now(); // stop timer