68 std::vector <Mdouble>
params(0);
69 for (
int i = 0;
i<NumParams;
i++) {
73 std::cout<<
params[
i]<<std::endl;
84 problem.speciesHandler.copyAndAddObject(species);
91 problem.wallHandler.copyAndAddObject(w0);
95 p0.setSpecies(
problem.speciesHandler.getObject(0));
106 problem.particleHandler.copyAndAddObject(
p0);
115 problem.setXBallsAdditionalArguments(
"-solidf -v0");
116 problem.setTimeStep(0.005 / 50.0);
120 std::cout<<
ExecCommand(
"rm -rf paraview_SimpleOpt/")<<std::endl;
121 std::cout<<
ExecCommand(
"mkdir paraview_SimpleOpt/")<<std::endl;
122 std::cout<<
ExecCommand(
"../../Tools/data2pvd SimpleOpt.data paraview_SimpleOpt/SimpleOpt")<<std::endl;
125 std::ofstream funct; funct.open (
"functional.txt");
126 Vec3D pos =
problem.particleHandler.getLastObject()->getPosition();
AnnoyingScalar cos(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:136
AnnoyingScalar sin(const AnnoyingScalar &x)
Definition: AnnoyingScalar.h:137
int i
Definition: BiCGSTAB_step_by_step.cpp:9
@ NO_FILE
file will not be created/read
@ ONE_FILE
all data will be written into/ read from a single file called name_
Logger< MERCURYDPM_LOGLEVEL > logger("MercuryKernel")
Definition of different loggers with certain modules. A user can define its own custom logger here.
Vector3f p0
Definition: MatrixBase_all.cpp:2
std::string ExecCommand(const char *cmd)
Definition: Opt.cpp:46
void setSpecies(const ParticleSpecies *species)
Defines the species of the current wall.
Definition: BaseWall.cc:148
A infinite wall fills the half-space {point: (position_-point)*normal_<=0}.
Definition: InfiniteWall.h:27
void set(Vec3D normal, Vec3D point)
Defines a standard wall, given an outward normal vector s.t. normal*x=normal*point for all x of the w...
Definition: InfiniteWall.cc:97
void setDissipation(Mdouble dissipation)
Allows the normal dissipation to be changed.
Definition: LinearViscoelasticNormalSpecies.cc:96
void setStiffness(Mdouble new_k)
Allows the spring constant to be changed.
Definition: LinearViscoelasticNormalSpecies.cc:72
void setDensity(Mdouble density)
Definition: ParticleSpecies.cc:88
A spherical particle is the most simple particle used in MercuryDPM.
Definition: SphericalParticle.h:16
Definition: Kernel/Math/Vector.h:30
Mdouble X
the vector components
Definition: Kernel/Math/Vector.h:45
const Scalar * a
Definition: level2_cplx_impl.h:32
#define INFO(i)
Definition: mumps_solver.h:54
double theta
Definition: two_d_biharmonic.cc:236
dictionary params
Definition: Particles2023AnalysisHung.py:35
Definition: SimpleOpt.py:1
bool readFromCommandLine(int argc, char *argv[], const std::string &varName)
Returns true if command line arguments contain varName, false else.
Definition: CommandLineHelpers.cc:99
std::string to_string(T object, unsigned float_precision=8)
Definition: oomph_utilities.h:189
Constructor for SteadyAxisymAdvectionDiffusion problem
Definition: steady_axisym_advection_diffusion.cc:213