72 unsigned numMechanicsElementsEachDir,
73 unsigned numElectricsElementsEachDir,
75 ContractionModelName contractionModel,
76 double mechanicsSolveTimestep,
77 double contractionModelOdeTimeStep,
78 std::string outputDirectory =
"")
89 assert(numMechanicsElementsEachDir > 0);
90 assert(numElectricsElementsEachDir > 0);
99 LOG(2,
"Width of meshes is " << width);
100 LOG(2,
"Num nodes in electrical and mechanical meshes are: " << this->
mpElectricsMesh->
GetNumNodes() <<
", " << this->mpMechanicsMesh->GetNumNodes() <<
"\n");
105 std::vector<unsigned> fixed_nodes;
110 fixed_nodes.push_back(i);
115 LOG(2,
"Fixed the " << fixed_nodes.size() <<
" nodes on x=0");
118 this->
mpProblemDefinition->SetContractionModel(contractionModel,contractionModelOdeTimeStep);