1010
1111#include " inp/deckIncludes.h"
1212
13- #include < fmt/ format.h >
13+ #include < format>
1414#include < fstream>
1515#include < iostream>
1616#include < random>
@@ -115,7 +115,7 @@ int main(int argc, char *argv[]) {
115115 auto bcDeckJson = inp::BCDeck::getExampleJson (0 , 1 , 2 , false , util::Point ());
116116
117117 // create this block from the BCData static function
118- bcDeckJson[" Displacement_BC" ][" Set_1" ] = inp::BCBaseDeck::getExampleJson (" Displacement_BC" , false , util::geometry ::GeomData (),
118+ bcDeckJson[" Displacement_BC" ][" Set_1" ] = inp::BCBaseDeck::getExampleJson (" Displacement_BC" , false , geom ::GeomData (),
119119 {0 }, {}, " " , {}, " " , {},
120120 {1 , 2 }, true , " " , {});
121121 // or explicitly, we can do
@@ -127,15 +127,15 @@ int main(int argc, char *argv[]) {
127127 double v_mag = 0.1 ; // m/s
128128 {
129129 // create this block from the ICData static function
130- bcDeckJson[" IC" ][" Set_1" ] = inp::BCBaseDeck::getExampleJson (" IC" , false , util::geometry ::GeomData (),
130+ bcDeckJson[" IC" ][" Set_1" ] = inp::BCBaseDeck::getExampleJson (" IC" , false , geom ::GeomData (),
131131 {1 }, {}, " " , {}, " " , {},
132132 {}, true , " Constant_Velocity" , {v_mag*0.1 , v_mag*0.9 , 0 .});
133133 // or explicitly, we can do
134134 // initCondJson.at("Constant_Velocity").at("Particle_List") = std::vector<size_t>({1});
135135 // initCondJson.at("Constant_Velocity").at("Velocity_Vector") = std::vector<double>{v_mag*0.1, v_mag*0.9, 0.};
136136 }
137137 {
138- bcDeckJson[" IC" ][" Set_2" ] = inp::BCBaseDeck::getExampleJson (" IC" , false , util::geometry ::GeomData (),
138+ bcDeckJson[" IC" ][" Set_2" ] = inp::BCBaseDeck::getExampleJson (" IC" , false , geom ::GeomData (),
139139 {2 }, {}, " " , {}, " " , {},
140140 {}, true , " Constant_Velocity" , {v_mag*0.5 , v_mag*0.5 , 0 .});
141141 }
@@ -155,7 +155,7 @@ int main(int argc, char *argv[]) {
155155 auto pDeckJson = json ({});
156156
157157 // // create particle geometry json
158- std::vector<util::geometry ::GeomData> pGeomVec (3 ); // 3 geometry groups
158+ std::vector<geom ::GeomData> pGeomVec (3 ); // 3 geometry groups
159159
160160 pGeomVec[0 ].d_geomName = " rectangle_minus_rectangle" ;
161161 // parameters
@@ -198,7 +198,7 @@ int main(int argc, char *argv[]) {
198198 // contact pair 1 - 1
199199 pContactJson[" Set_1_1" ] = inp::ContactPairDeck::getExampleJson (0.95 ,
200200 true , false , false ,
201- 1e+22 , 0.95 , 0 ., 1 ., 1 ., 1 ., 0 .);
201+ 1e+22 , 0.95 , 0 ., 1 ., 1 ., 1 ., 0 ., 25000 . );
202202 // copy other pairs
203203 pContactJson[" Set_1_2" ] = {{" Copy_Data" , std::vector<int >({1 , 1 })}};
204204 pContactJson[" Set_2_2" ] = {{" Copy_Data" , std::vector<int >({1 , 1 })}};
@@ -217,15 +217,15 @@ int main(int argc, char *argv[]) {
217217
218218 // p1
219219 pGenJson[" Data" ][" 0" ] = {{" x" , 0 .}, {" y" , 0 .}, {" z" , 0 .}, {" o" , 0 .}, {" s" , 1 .},
220- {" geom_id" , 0 }, {" mat_id" , 0 }, {" mesh_id " , 0 }, { " contact_id" , 0 }};
220+ {" geom_id" , 0 }, {" mat_id" , 0 }, {" contact_id" , 0 }};
221221
222222 // p1
223223 pGenJson[" Data" ][" 1" ] = {{" x" , 0 .}, {" y" , 0 .}, {" z" , 0 .}, {" o" , 0 .}, {" s" , 1 .},
224- {" geom_id" , 1 }, {" mat_id" , 1 }, {" mesh_id " , 1 }, { " contact_id" , 1 }};
224+ {" geom_id" , 1 }, {" mat_id" , 1 }, {" contact_id" , 1 }};
225225
226226 // p1
227227 pGenJson[" Data" ][" 2" ] = {{" x" , 0 .}, {" y" , 0 .}, {" z" , 0 .}, {" o" , 0 .}, {" s" , 1 .},
228- {" geom_id" , 2 }, {" mat_id" , 1 }, {" mesh_id " , 2 }, { " contact_id" , 1 }};
228+ {" geom_id" , 2 }, {" mat_id" , 1 }, {" contact_id" , 1 }};
229229
230230 // add to json
231231 pDeckJson[" Particle_Generation" ] = pGenJson;
0 commit comments