Advertisement
Guest User

Untitled

a guest
May 24th, 2015
197
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.57 KB | None | 0 0
  1. Dataset::Dataset<calc_t, calc_t> lj_data("distance", "energy potential");
  2.  
  3.         LennardJonesPotential<PhaseSpace::calc_t> pot(params.siglj, params.epslj);
  4.         auto step = params.rcutg / 100;
  5.  
  6.         for (int i= 1; i <= 100; ++i) {
  7.            
  8.             coord_t x_r ({i*step,0,0});    
  9.             calc_t e_lj = 0;
  10.             pot.force(x_r, &e_lj);
  11.             lj_data.push_back(i*step, e_lj);
  12.         }
  13.  
  14.         decltype(lj_data)::Writer(lj_data, std::string("./lj_data.csv"));
  15.         decltype(sim_data)::Writer(sim_data, params.path + params.sim_data_path);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement