scenario changes
This commit is contained in:
parent
c9b42a02f0
commit
804a634062
|
@ -156,7 +156,7 @@ void updateMesh(long n, const double *x) {
|
||||||
}
|
}
|
||||||
|
|
||||||
pReducedPatternSimulationMesh->updateEigenEdgeAndVertices();
|
pReducedPatternSimulationMesh->updateEigenEdgeAndVertices();
|
||||||
pReducedPatternSimulationMesh->updateInitialPositions();
|
pReducedPatternSimulationMesh->reset();
|
||||||
// pReducedPatternSimulationMesh->registerForDrawing("Optimized
|
// pReducedPatternSimulationMesh->registerForDrawing("Optimized
|
||||||
// hexagon"); polyscope::show();
|
// hexagon"); polyscope::show();
|
||||||
}
|
}
|
||||||
|
@ -507,7 +507,7 @@ Eigen::VectorXd ReducedModelOptimizer::runOptimization(
|
||||||
"conditions is not recommended.");
|
"conditions is not recommended.");
|
||||||
// Set initial guess of solution
|
// Set initial guess of solution
|
||||||
|
|
||||||
std::vector<double> x(n, 2);
|
std::vector<double> x(n, 100);
|
||||||
x[4] = g_innerHexagonInitialPos;
|
x[4] = g_innerHexagonInitialPos;
|
||||||
if (!initialGuess.empty()) {
|
if (!initialGuess.empty()) {
|
||||||
x = initialGuess;
|
x = initialGuess;
|
||||||
|
@ -770,12 +770,6 @@ void ReducedModelOptimizer::optimize(const int &simulationScenario) {
|
||||||
"reducedModel_" + SimulationScenarioStrings[simulationScenarioIndex];
|
"reducedModel_" + SimulationScenarioStrings[simulationScenarioIndex];
|
||||||
reducedModelResults.registerForDrawing(reducedPatternSimulationJob);
|
reducedModelResults.registerForDrawing(reducedPatternSimulationJob);
|
||||||
// registerWorldAxes();
|
// registerWorldAxes();
|
||||||
std::cout << "A full:"
|
|
||||||
<< m_pFullModelSimulationMesh->elements[0].properties.A
|
|
||||||
<< std::endl;
|
|
||||||
std::cout << "A reduced:"
|
|
||||||
<< m_pReducedPatternSimulationMesh->elements[0].properties.A
|
|
||||||
<< std::endl;
|
|
||||||
polyscope::show();
|
polyscope::show();
|
||||||
fullModelResults.unregister();
|
fullModelResults.unregister();
|
||||||
reducedModelResults.unregister();
|
reducedModelResults.unregister();
|
||||||
|
|
Loading…
Reference in New Issue