Browse Source

append readme

multiple_top
cflin 2 years ago
parent
commit
2ad54eba43
  1. 2
      README.md
  2. 6
      src/ThermoelasticTop3d.cu

2
README.md

@ -67,4 +67,4 @@ make -j4
NOTE:
1. `"//*"` in `examples/*/config.json` file mean comments.
2. you can modify `CONFIG_FILE`, `OUTPUT_DIR` and `ASSETS_DIR` in `examples/*/CMAKEList.txt`.
3. you can modify the linear solver arguments `prm.solver.tol` and `prm.solver.maxiter` in `src/LinearSolver/Amgcl.h` or `src/LinearSolver/AmgclCuda.h`.

6
src/ThermoelasticTop3d.cu

@ -162,10 +162,10 @@ da::sha::top::Tensor3d da::sha::top::ThermoelasticTop3d::TopOptMainLoop() {
;
sp_mech_top3d_->IntroduceFixedDofs(sp_mech_top3d_->K_, F);
Timer::tic();
// Timer::tic();
INIT_SOLVER(solver,sp_mech_top3d_->K_);
sp_mech_top3d_->U_ = solver.solve(F);
Timer::toc();
// Timer::toc();
// compliance
@ -353,7 +353,7 @@ da::sha::top::Tensor3d da::sha::top::ThermoelasticTop3d::TopOptMainLoop() {
spdlog::critical("Iter: {:3d}, Comp: {:.3e}, Vol: {:.2f}, Change: {:f}", loop, c, v,
change);
std::cout << fval.transpose() << std::endl;
// std::cout << fval.transpose() << std::endl;
#ifdef WRITE_TENSOR_IN_LOOP
// extract vtk
ele_to_write(idx_of_ele_in_use) = xPhys_col;

Loading…
Cancel
Save