Skip to content

Commit

Permalink
Fixed a bug in energy writer
Browse files Browse the repository at this point in the history
  • Loading branch information
eg0000r-pub committed Jan 29, 2024
1 parent 261180a commit 8f4a7b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ int main() {
if (n % thermo_dump_period == 0) {
ofs << double(n) * dt << "\t"
<< compute_translational_kinetic_energy(system.get_v(), mass) << "\t"
<< compute_rotational_kinetic_energy(system.get_v(), mass) << "\t"
<< compute_rotational_kinetic_energy(system.get_omega(), mass) << "\t"
<< compute_total_kinetic_energy(system.get_v(), system.get_omega(), mass, inertia) << "\t"
<< compute_linear_momentum(system.get_v(), mass) << "\t"
<< compute_angular_momentum(system.get_x(), system.get_v(), mass, system.get_omega(), inertia) << std::endl;
Expand Down

0 comments on commit 8f4a7b7

Please sign in to comment.