Skip to content

Commit

Permalink
commented out debugging routines in container.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
ndevenish authored and Nicholas Devenish committed Feb 21, 2011
1 parent 3869f6c commit 07ad9ac
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
6 changes: 3 additions & 3 deletions scripts/veltest.nsl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@

add edmexperiment "Velocity Test Experiment" {
set phase_steps 30 #phase average loops
set phase_steps 20 #phase average loops
# set bounces 10000 #number of bounces to run the simulation over
set lifetime 120 #The lifetime of a particle (seconds)
set lifetime 20 #The lifetime of a particle (seconds)

#Set the distance to 'lift' the particle off of the bottles
#surface after a collision has happened. This is in to fix
Expand Down Expand Up @@ -35,7 +35,7 @@ add edmexperiment "Velocity Test Experiment" {
add particle neutron {
set gamma -29.1646870E+6 # (Hertz per tesla)

#vary velocity from 10 to 200 in 20 steps
#vary velocity from 1 to 200 in 50 steps
#set velocity 3 # (Meters per second)
#vary velocity from 100 to 500 in 3 steps
set velocity 500
Expand Down
3 changes: 2 additions & 1 deletion src/container.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,7 @@ void container::reflect ( vector3& velocity_vec, const vector3& normal, const lo
if (normal.z < 0)
velocity_vec.z *= -1.;
}
/*
// Dump out the dot product between this and the normal
static std::ofstream dotps("dotps.txt");
static std::ofstream dotwrong("dotwrong.txt");
Expand All @@ -300,7 +301,7 @@ void container::reflect ( vector3& velocity_vec, const vector3& normal, const lo
if (dotp > 1)
dotwrong << dotp << "\t(" << velocity_vec << ")\t(" << normal*velocity << ")" << endl;
reflects << velocity_vec << endl;
}
}*/
}
else
throw runtime_error("Unrecognised reflection type requested for reflection");
Expand Down

0 comments on commit 07ad9ac

Please sign in to comment.