73 {1.0, 1.0}, {0.95, 0.946}, {0.9, 0.893}, {0.85, 0.845}, {0.8, 0.796}};
74 if (test_id < 1 || test_id > 5)
75 throw std::runtime_error(
"jha2021Table2Test must be 1..5");
76 return k[test_id - 1];
83 namespace fs = std::filesystem;
84 fs::path n = fs::absolute(dir).lexically_normal();
85 std::string s = n.string();
86 if (!s.empty() && s.back() !=
'/' && s.back() !=
'\\')
87 s += fs::path::preferred_separator;
92 const std::filesystem::path &mesh_file_1,
93 const std::filesystem::path &mesh_file_2,
94 double final_time,
size_t num_steps,
bool zero_ic,
95 double mesh_size_in,
double horizon_in,
bool damping_on,
96 double eps_n,
bool two_particle_test,
bool file_mesh,
98 const std::string &damping_law =
"com_and_node",
99 const std::string &friction_law =
"coulomb_simple",
100 bool friction_on =
false,
101 double friction_mu = -1.,
103 bool bottom_patch_bc =
false,
104 const std::string &mpi_strategy =
"auto") {
106 const std::vector<double> center = {0.0, 0.0, 0.0};
107 const double R1 = 0.001;
108 const double R2 = 0.001;
109 const double mesh_size =
110 mesh_size_in > 0. ? mesh_size_in : std::min(R1, R2) / 5.0;
111 const double horizon = horizon_in > 0. ? horizon_in : 3.0 * mesh_size;
112 const double particle_dist = 0.001;
114 const double poisson1 = 0.25;
115 const double rho1 = 1200.0;
116 const double K1 = 2.16e+7;
119 const double Gc1 = 50.0;
121 const double poisson2 = 0.25;
122 const double rho2 = 1200.0;
123 const double K2 = 2.16e+7;
126 const double Gc2 = 50.0;
128 const double R_contact_factor = 0.95;
129 const double Kn_11 = 18.0 *
util::harmonicMean(K1, K1) / (M_PI * std::pow(horizon, 5));
130 const double Kn_22 = 18.0 *
util::harmonicMean(K2, K2) / (M_PI * std::pow(horizon, 5));
131 const double Kn_12 = 18.0 *
util::harmonicMean(K1, K2) / (M_PI * std::pow(horizon, 5));
132 const double friction_coeff = 0.5;
134 std::vector<double> p1_center = center;
135 std::vector<double> p2_center = center;
137 const double H0_drop = particle_dist;
139 const double top_gap = two_particle_test ? horizon : particle_dist;
141 const size_t dt_out_n = num_steps / 10;
143 "finite_difference",
"central_difference",
144 true, 2,
"Multi_Particle", 0);
145 modelDeckJson[
"MPI_Strategy"] = mpi_strategy;
148 std::vector<std::string>({
"Displacement",
"Velocity",
"Force",
"Damage_Z",
"Damage",
"Particle_ID"}),
149 dt_out_n, 2,
true,
"zlib",
true, 1,
"",
true);
153 if (bottom_patch_bc) {
157 patch.
d_geomParams = {R1 - 1.1 * R1, -0.1 * R1, 0., R1 + 1.1 * R1, 0.35 * R1,
161 bcDeckJson[
"Displacement_BC"][
"Set_1"] =
json{
162 {
"Particle_List", json::array({0})},
163 {
"Region", {{
"Geometry", j_geom}}},
164 {
"Direction", json::array({1, 2})},
165 {
"Zero_Displacement",
true}};
167 bcDeckJson[
"Displacement_BC"][
"Set_1"] =
169 {0}, {},
"", {},
"", {}, {1, 2},
true,
"",
173 std::vector<double> ic_vel = {0.0, 0.0, 0.0};
175 const double fallen =
176 two_particle_test ? (H0_drop - top_gap) : (particle_dist - horizon);
178 ic_vel[1] = -std::sqrt(2.0 * std::abs(-10.0) * fallen);
182 {1}, {},
"", {},
"", {},
183 {},
false,
"Constant_Velocity", ic_vel);
185 auto pDeckJson =
json({});
187 std::vector<geom::GeomData> pGeomVec(2);
188 pGeomVec[0].d_geomName =
"circle";
189 pGeomVec[0].d_geomParams = {R1, p1_center[0], p1_center[1], p1_center[2]};
190 pGeomVec[1].d_geomName =
"circle";
191 pGeomVec[1].d_geomParams = {R2, p2_center[0], p2_center[1], p2_center[2]};
195 const std::string f1 = mesh_file_1.string();
196 const std::string f2 = mesh_file_2.string();
197 json meshSet1, meshSet2;
199 meshSet1 =
json({{
"File", f1}});
200 meshSet2 =
json({{
"File", f2}});
202 meshSet1 =
json({{
"File", f1},
205 {
"Info",
"gmsh_builtin_mesh"},
206 {
"Mesh_Size", mesh_size},
207 {
"Write_Mesh_File",
true}}}});
208 meshSet2 =
json({{
"File", f2},
211 {
"Info",
"gmsh_builtin_mesh"},
212 {
"Mesh_Size", mesh_size},
213 {
"Write_Mesh_File",
true}}}});
215 pDeckJson[
"Mesh"] =
json({{
"Sets", 2}, {
"Set_1", meshSet1}, {
"Set_2", meshSet2}});
219 0, rho1, K1, G1, Gc1,
true, 1);
221 0, rho2, K2, G2, Gc2,
true, 1);
222 pDeckJson[
"Material"] = pMatJson;
229 (friction_mu >= 0.) ? friction_mu
230 : (two_particle_test ? 0. : friction_coeff);
232 R_contact_factor,
true, damping_on, friction_on, Kn_11, eps_n, mu,
233 1.0, beta_n_factor, 1.0, 0.0, K1);
235 pContactJson[
"Set_1_1"] = contact_base;
236 pContactJson[
"Set_1_1"][
"Kn"] = Kn_11;
237 pContactJson[
"Set_1_1"][
"K"] = K1;
238 pContactJson[
"Set_1_2"] = contact_base;
239 pContactJson[
"Set_1_2"][
"Kn"] = Kn_12;
241 pContactJson[
"Set_2_2"] = contact_base;
242 pContactJson[
"Set_2_2"][
"Kn"] = Kn_22;
243 pContactJson[
"Set_2_2"][
"K"] = K2;
244 pContactJson[
"Damping_Law"] = damping_law;
245 pContactJson[
"Friction_Law"] = friction_law;
246 pDeckJson[
"Contact"] = pContactJson;
248 pDeckJson[
"Neighbor"] = two_particle_test
253 pGenJson[
"Random_Rotation"] =
false;
254 pGenJson[
"Data"][
"N"] = 2;
255 pGenJson[
"Data"][
"0"] = {
256 {
"x", R1}, {
"y", R1}, {
"z", 0.0},
257 {
"theta", 0.0}, {
"s", 1.0},
258 {
"geom_id", 0}, {
"mat_id", 0}, {
"contact_id", 0}
260 pGenJson[
"Data"][
"1"] = {
261 {
"x", R1}, {
"y", 2.0 * R1 + R2 + top_gap}, {
"z", 0.0},
262 {
"theta", two_particle_test ? M_PI / 2.0 : M_PI}, {
"s", 1.0},
263 {
"geom_id", 1}, {
"mat_id", 1}, {
"contact_id", 1}
265 pDeckJson[
"Particle_Generation"] = pGenJson;
267 auto j =
json({{
"Model", modelDeckJson},
268 {
"Output", outputDeckJson},
269 {
"Force_BC", bcDeckJson[
"Force_BC"]},
270 {
"Displacement_BC", bcDeckJson[
"Displacement_BC"]},
271 {
"IC", bcDeckJson[
"IC"]},
272 {
"Particle", pDeckJson[
"Particle"]},
273 {
"Mesh", pDeckJson[
"Mesh"]},
274 {
"Material", pDeckJson[
"Material"]},
275 {
"Contact", pDeckJson[
"Contact"]},
276 {
"Neighbor", pDeckJson[
"Neighbor"]},
277 {
"Particle_Generation", pDeckJson[
"Particle_Generation"]}});
278 if (two_particle_test)
279 j[
"Test"] =
json{{
"Test_Name",
"two_particle"}};
292 if (
data.d_particlesListTypeAll.size() < 2)
294 const auto *p0 =
data.d_particlesListTypeAll[0];
295 const auto *p1 =
data.d_particlesListTypeAll[1];
296 const double gap = p0->getXCenter().dist(p1->getXCenter()) -
297 p0->d_geom_p->boundingRadius() -
298 p1->d_geom_p->boundingRadius();
299 if (
data.currentStep() % 50 == 0)
303 const double leave = 1.0e-5;
304 const double significant = 0.05 *
d_H0;
309 }
else if (d_minGap < 0.3 * d_H0 && gap >
d_minGap + leave) {
314 }
else if (gap >
d_H1) {
327 const std::vector<std::pair<double, double>> &
samples()
const {
355 if (
data.d_particlesListTypeAll.size() < 2)
357 const auto *p0 =
data.d_particlesListTypeAll[0];
358 const auto *p1 =
data.d_particlesListTypeAll[1];
359 const double gap = p0->getXCenter().dist(p1->getXCenter()) -
360 p0->d_geom_p->boundingRadius() -
361 p1->d_geom_p->boundingRadius();
362 if (gap < 0.5 * 0.001)
364 const double vx = std::abs(p1->getVCenter().d_x);
391 std::filesystem::create_directories(
d_outDir /
"nodal");
393 d_os <<
"step,t,max_u,com1x,com1y\n";
399 const size_t nstep =
data.currentStep();
404 for (
const auto &u :
data.d_u)
405 max_u = std::max(max_u, u.length());
407 MPI_Allreduce(MPI_IN_PLACE, &max_u, 1, MPI_DOUBLE, MPI_MAX,
409 double com1x = 0., com1y = 0.;
410 if (
data.d_particlesListTypeParticle.size() > 1) {
411 const auto c =
data.d_particlesListTypeParticle[1]->getXCenter();
416 d_os << std::format(
"{},{:.12e},{:.12e},{:.12e},{:.12e}\n", nstep,
417 data.d_time, max_u, com1x, com1y);
426 if (
data.d_pdDofMpi) {
427 if (i >=
data.d_pdNodePartition.size())
429 return static_cast<int>(
data.d_pdNodePartition[i]) == rank;
432 for (
const auto *p :
data.d_particlesListTypeAll) {
433 const size_t i0 = p->d_globStart;
434 const size_t i1 = i0 + p->getNumNodes();
435 if (i < i0 || i >= i1)
445 const size_t n =
data.d_u.size();
446 std::vector<double> buf(6 * n, 0.);
447 for (
size_t i = 0; i < n; ++i) {
450 buf[6 * i + 0] =
data.d_u[i].d_x;
451 buf[6 * i + 1] =
data.d_u[i].d_y;
452 buf[6 * i + 2] =
data.d_u[i].d_z;
453 buf[6 * i + 3] =
data.d_v[i].d_x;
454 buf[6 * i + 4] =
data.d_v[i].d_y;
455 buf[6 * i + 5] =
data.d_v[i].d_z;
458 MPI_Allreduce(MPI_IN_PLACE, buf.data(),
static_cast<int>(buf.size()),
463 std::ofstream xr(
d_outDir /
"nodal" /
"x_ref.bin", std::ios::binary);
464 const uint32_t nn =
static_cast<uint32_t
>(n);
465 xr.write(
reinterpret_cast<const char *
>(&nn),
sizeof(nn));
466 for (
size_t i = 0; i < n; ++i) {
467 const double p[3] = {
data.d_xRef[i].d_x,
data.d_xRef[i].d_y,
469 xr.write(
reinterpret_cast<const char *
>(p),
sizeof(p));
474 d_outDir /
"nodal" / std::format(
"uv_{:06d}.bin", nstep);
475 std::ofstream os(path, std::ios::binary);
476 const char magic[4] = {
'P',
'D',
'U',
'V'};
477 const uint32_t step32 =
static_cast<uint32_t
>(nstep);
478 const uint32_t nn =
static_cast<uint32_t
>(n);
480 os.write(
reinterpret_cast<const char *
>(&step32),
sizeof(step32));
481 os.write(
reinterpret_cast<const char *
>(&nn),
sizeof(nn));
482 os.write(
reinterpret_cast<const char *
>(buf.data()),
483 static_cast<std::streamsize
>(buf.size() *
sizeof(double)));
492int main(
int argc,
char *argv[]) {
496 util::io::print(std::format(
"Initialized MPI. MPI size = {}, MPI rank = {}\n", mpiSize, mpiRank));
501 unsigned int nThreads;
505 nThreads = std::thread::hardware_concurrency();
506 util::io::print(std::format(
"Running test with default number of threads = {}\n", nThreads));
511#ifndef TWOP_CONTACT_EXAMPLE
512 double final_time = 0.002;
513 size_t num_steps = 6000;
515 double final_time = 0.012;
516 size_t num_steps = 36000;
518 bool zero_ic =
false;
519 double mesh_size_in = -1.;
520 double horizon_in = -1.;
521 bool assert_cr =
false;
524 bool damping_on =
false;
526 double beta_n_factor = 100.0;
527 std::string damping_law =
"com_and_node";
528 std::string friction_law =
"coulomb_simple";
529 bool friction_on =
false;
530 double friction_mu = -1.;
532 bool assert_lat =
false;
534 bool bottom_patch_bc =
false;
535 std::string mpi_strategy =
"auto";
536 bool write_mpi_metric =
false;
539 jha_test = std::stoi(input.
getCmdOption(
"-jha2021Table2Test"));
556 damping_on = c.eps < 1.0 - 1.0e-12;
559 final_time = std::stod(input.
getCmdOption(
"-finalTime"));
561 num_steps = std::stoul(input.
getCmdOption(
"-numSteps"));
565 mesh_size_in = std::stod(input.
getCmdOption(
"-meshSize"));
570 damping_on = eps_n < 1.0 - 1.0e-12;
573 beta_n_factor = std::stod(input.
getCmdOption(
"-betaNFactor"));
586 lat_min = std::stod(input.
getCmdOption(
"-assertLateralVx"));
596 bottom_patch_bc =
true;
600 write_mpi_metric =
true;
602 "final_time = {}, num_steps = {}, zero_ic = {}, eps_n = {}, C_bar = {}, "
603 "damping = {}, Damping_Law = {}, Friction_Law = {}, bottomPatchBC = {}, "
604 "MPI_Strategy = {}\n",
605 final_time, num_steps, zero_ic, eps_n, beta_n_factor, damping_on,
606 damping_law, friction_law, bottom_patch_bc, mpi_strategy));
608 namespace fs = std::filesystem;
609 const fs::path cwd = fs::current_path();
611 fs::path out_dir = cwd /
"out";
612 fs::path inp_dir = cwd /
"inp";
616 out_dir = p.is_absolute() ? std::move(p) : cwd / p;
620 inp_dir = p.is_absolute() ? std::move(p) : cwd / p;
623 inp_dir = out_dir.parent_path() /
"inp";
626 fs::create_directories(out_dir);
627 fs::create_directories(inp_dir);
629 const std::string output_path_for_deck = directoryPathWithTrailingSep(out_dir);
630 const fs::path mesh1 = inp_dir /
"mesh_cir_1.msh";
631 const fs::path mesh2 = inp_dir /
"mesh_cir_2.msh";
633 const bool file_mesh = jha_test > 0 && !inbuilt_mesh;
635#ifndef JHA2021_MESH_DIR
636 throw std::runtime_error(
"JHA2021_MESH_DIR is not set (v0.1.0 circ_damp meshes).");
638 const fs::path src(JHA2021_MESH_DIR);
639 fs::copy_file(src /
"mesh_cir_1.msh", mesh1, fs::copy_options::overwrite_existing);
640 fs::copy_file(src /
"mesh_cir_2.msh", mesh2, fs::copy_options::overwrite_existing);
641 util::io::print(std::format(
"Using v0.1.0 circ_damp meshes from {}\n", src.string()));
643 }
else if (jha_test > 0)
644 util::io::print(
"Using in-process Gmsh (gmsh_builtin_mesh) instead of frozen v0.1.0 .msh\n");
646 util::io::print(std::format(
"Output directory (VTU, log.txt): {}\n", fs::absolute(out_dir).
string()));
647 util::io::print(std::format(
"Input directory (input.json, meshes): {}\n", fs::absolute(inp_dir).
string()));
649 auto inputJson =
buildInputJson(output_path_for_deck, mesh1, mesh2, final_time,
650 num_steps, zero_ic, mesh_size_in, horizon_in,
651 damping_on, eps_n, jha_test > 0, file_mesh,
652 beta_n_factor, damping_law,
653 friction_law, friction_on, friction_mu,
654 ic_vx, bottom_patch_bc, mpi_strategy);
656 const fs::path input_json_path = inp_dir /
"input.json";
658 std::ofstream os(input_json_path);
660 throw std::runtime_error(
"Failed to open " + input_json_path.string() +
" for writing.");
661 os << inputJson.dump(2);
663 util::io::print(std::format(
"Wrote deck to {}\n", fs::absolute(input_json_path).
string()));
665 const auto &p1 = inputJson[
"Particle_Generation"][
"Data"][
"1"];
666 const auto &v = inputJson[
"IC"][
"Set_1"][
"Constant_Velocity"][
"Velocity_Vector"];
667 const double y1 = p1.at(
"y").get<
double>();
668 const double gap0 = y1 - 0.001 - 0.001 - 0.001;
670 "Table 2 kinematics: top y = {}, surface gap = {}, v_y = {}\n",
671 y1, gap0, v.at(1).get<
double>()));
674 auto deck = std::make_shared<inp::Input>(inputJson);
680 auto p = std::make_unique<RestitutionProbe>(0.001);
683 }
else if (assert_lat) {
684 auto p = std::make_unique<LateralProbe>(ic_vx);
687 }
else if (write_mpi_metric) {
688 const size_t ts_every = std::max<size_t>(1, num_steps / 100);
690 std::make_unique<MpiMetricTsProbe>(out_dir, ts_every));
696 dem.
d_Z.empty() ? 0.f : *std::max_element(dem.
d_Z.begin(), dem.
d_Z.end());
697 util::io::print(std::format(
"requireContact: max Damage_Z = {}\n", zmax));
699 util::io::print(
"requireContact: no damage; particles did not contact.\n");
706 const fs::path gap_csv = out_dir /
"gap.csv";
707 std::ofstream gs(gap_csv);
709 for (
const auto &s : probe->
samples())
710 gs << s.first <<
"," << s.second <<
"\n";
711 util::io::print(std::format(
"Wrote {}\n", fs::absolute(gap_csv).
string()));
713 const double cr = probe->
CR();
715 "assertCR: contacted={}, min_gap={} (t={}), H1={} (t={}), CR={}, ref={}, tol={}\n",
717 probe->
tH1(), cr, cr_ref, cr_tol));
720 "assertCR: CR > 1.02 on the 1 mm energy-equivalent drop "
721 "(surface gap = horizon, leftover height already in v_y). "
722 "Unphysical energy gain.\n");
725 if (!probe->
contacted() || std::abs(cr - cr_ref) > cr_tol) {
726 util::io::print(
"assertCR: coefficient of restitution out of range.\n");
733 const double vmax = lat_probe->
maxAbsVx();
734 const double ic = lat_probe->
icAbsVx();
736 "assertLateralVx: contacted={}, max|vx|={}, min|vx|_after_contact={}, "
737 "ic|vx|={}, slow_factor_max={}\n",
738 lat_probe->
contacted(), vmax, vmin, ic, lat_min));
744 if (!(ic > 0.) || !(vmin < lat_min * ic)) {
746 "assertLateralVx: friction did not slow lateral speed enough "
747 "(or kinematics missed).\n");
752 if (write_mpi_metric) {
754 for (
const auto &u : dem.
d_u)
755 max_u = std::max(max_u, u.length());
756 double com1x = 0., com1y = 0.;
763 MPI_Allreduce(MPI_IN_PLACE, &max_u, 1, MPI_DOUBLE, MPI_MAX,
770 std::ofstream os(out_dir /
"mpi_metric.txt");
771 os << std::format(
"{:.12e} {:.12e} {:.12e}\n", max_u, com1x, com1y);
773 "mpi_metric: max|u|={:.12e} grain1_com=({:.12e},{:.12e})\n", max_u,
double minAbsVxAfterContact() const
LateralProbe(double ic_abs_vx)
double d_minAbsVxAfterContact
void checkStop(data::ModelData &data) override
void checkStop(data::ModelData &data) override
MpiMetricTsProbe(std::filesystem::path out_dir, size_t interval)
static bool ownsNode(const data::ModelData &data, size_t i)
std::filesystem::path d_outDir
void dumpNodalUV(data::ModelData &data, size_t nstep)
void setPostprocess(std::unique_ptr< postprocess::Postprocess > p)
void run(std::shared_ptr< inp::Input > &deck)
RestitutionProbe(double H0)
std::vector< std::pair< double, double > > d_samples
const std::vector< std::pair< double, double > > & samples() const
void checkStop(data::ModelData &data) override
A class to store model data.
std::vector< float > d_Z
Damage at nodes.
std::vector< util::Point > d_u
Displacement of the nodes.
std::vector< particle::BaseParticle * > d_particlesListTypeParticle
List of particles.
Extra postprocessing and stop criteria (VTU writing is in rw::).
virtual void checkStop(data::ModelData &data)
nlohmann::ordered_json json
std::string directoryPathWithTrailingSep(const std::filesystem::path &dir)
json buildInputJson(const std::string &output_path_for_deck, const std::filesystem::path &mesh_file_1, const std::filesystem::path &mesh_file_2, double final_time, size_t num_steps, bool zero_ic, double mesh_size_in, double horizon_in, bool damping_on, double eps_n, bool two_particle_test, bool file_mesh, double beta_n_factor, const std::string &damping_law="com_and_node", const std::string &friction_law="coulomb_simple", bool friction_on=false, double friction_mu=-1., double ic_vx=0., bool bottom_patch_bc=false, const std::string &mpi_strategy="auto")
void writeGeometry(json &j, const geom::GeomData &geomData)
double toGE(double E, double nu)
Compute shear modulus from Young's modulus E and Poisson's ratio nu.
double toE(double K, double nu)
Compute Young's modulus E from Bulk modulus K and Poisson's ratio nu.
bool isLocallyOwned(const BaseParticle &p)
True if this rank updates / assembles forces for the particle. Walls are replicated on every rank....
void print(const T &msg, int nt=print_default_tab, int printMpiRank=print_default_mpi_rank)
Prints formatted information.
bool isMpiEnabled()
Function to check if MPI is enabled.
unsigned int getNThreads()
Get number of threads to be used by taskflow.
void initNThreads(unsigned int nThreads=std::thread::hardware_concurrency())
Initializes MpiStatus struct.
const MpiStatus * getMpiStatus()
Returns pointer to MpiStatus struct.
void initMpi(int argc=0, char *argv[]=nullptr)
Initializes MPI and also creates MpiStatus struct.
int mpiSize()
Get size (number) of processors.
int mpiRank()
get rank (id) of this processor
void finalizeMpi()
Call MPI_Finalize if this process initialized MPI.
MPI_Comm mpiComm()
Get MPI comm.
double harmonicMean(const double &m1, const double &m2)
Input data for geometrical objects.
std::vector< double > d_geomParams
Zone parameters.
std::string d_geomName
Zone type.
static json getExampleJson(std::string type="Foce_BC", bool isRegionActive=false, geom::GeomData regionGeomData=geom::GeomData(), std::vector< size_t > pList=std::vector< size_t >(), std::vector< size_t > pNotList=std::vector< size_t >(), std::string timeFnType="", std::vector< double > timeFnParams=std::vector< double >(), std::string spatialFnType="", std::vector< double > spatialFnParams=std::vector< double >(), std::vector< size_t > direction=std::vector< size_t >(), bool isDisplacementZero=false, std::string icType="", std::vector< double > icVec=std::vector< double >())
Returns example JSON object for ModelDeck configuration.
static json getExampleJson(size_t nForceSets=0, size_t nDispSets=0, size_t nICSets=0, bool gravityActive=false, util::Point gravity=util::Point())
Returns example JSON object for ModelDeck configuration.
static json getExampleJson(std::string materialType="PDState", bool isPlainStrain=false, double horizon=-1., double horizonMeshRatio=-1., double density=1., double K=0., double G=0., double Gc=0., bool computeParamsFromElastic=true, size_t influenceFnType=0, double E=-1.)
Returns example JSON object for ModelDeck configuration.
static json getExampleJson(size_t dim=2, double tFinal=1.0, size_t Nt=10, std::string spatialDiscretization="finite_difference", std::string timeDiscretization="central_difference", bool populateElementNodeConnectivity=true, size_t quadOrder=2, std::string particleSimType="Multi_Particle", int seed=0)
Returns example JSON object for ModelDeck configuration.
static json getExampleJson(std::string outFormat="vtu", std::string path="./", std::vector< std::string > outTags={"Displacement"}, size_t outputInterval=1, size_t debug=2, bool performFEOut=true, std::string compressType="zlib", bool performOut=true, size_t dtTestOut=1, std::string tagPPFile="", bool pvdCollection=false)
Returns example JSON object for ModelDeck configuration.
static json getExampleJson(std::string genMethod="From_File")
Returns example JSON object for ModelDeck configuration.
static json getExampleJson(std::string updateCriteria="simple_all", double sFactor=1., size_t neighUpdateInterval=1, double nearBdNodesTol=0.5)
Returns example JSON object for ModelDeck configuration.
static json getParticleContactExampleJson(size_t nSets=0)
Returns example JSON object for ModelDeck configuration.
static json getParticleGeomExampleJson(std::vector< geom::GeomData > pGeomVec=std::vector< geom::GeomData >())
Returns example JSON object for ModelDeck configuration.
static json getParticleMaterialExampleJson(size_t nSets=0)
Returns example JSON object for ModelDeck configuration.
A structure to represent 3d vectors.
Jha2021Table2 jha2021Table2(int test_id)