31 #include "libmesh/libmesh.h" 32 #include "libmesh/libmesh_config.h" 33 #include "libmesh/getpot.h" 34 #include "libmesh/exodusII_io.h" 35 #include "libmesh/enum_solver_package.h" 37 #include "libmesh/serial_mesh.h" 38 #include "libmesh/mesh_generation.h" 39 #include "libmesh/mesh_modification.h" 40 #include "libmesh/mesh_refinement.h" 42 #include "libmesh/dof_map.h" 43 #include "libmesh/linear_solver.h" 44 #include "libmesh/equation_systems.h" 45 #include "libmesh/linear_implicit_system.h" 46 #include "libmesh/periodic_boundary.h" 47 #include "libmesh/sparse_matrix.h" 48 #include "libmesh/numeric_vector.h" 49 #include "libmesh/slepc_macro.h" 50 #include "libmesh/perf_log.h" 97 const Real
kB = 1.380662E-17;
98 const Real
PI = libMesh::pi;
263 void end_time(
struct tm * timeinfo);
271 EquationSystems
init_system(std::string input_file);
315 virtual void run(EquationSystems& equation_systems) = 0;
353 virtual void set_parameters(EquationSystems& equation_systems) = 0;
Definition: copss_init.h:32
unsigned int nstep
Definition: copss.h:169
std::vector< Fix * > fixes
Definition: copss.h:130
Real eig_max
Definition: copss.h:198
virtual void update_object()
Definition: copss.h:384
void attach_fixes(PMLinearImplicitSystem &system)
Definition: copss.C:669
void read_input()
Definition: copss.C:93
Real Rb
Definition: copss.h:102
void destroy()
Definition: copss.C:1329
void langevin_integrate(EquationSystems &equation_systems, unsigned int &i)
Definition: copss.C:1182
bool read_eigen
Definition: copss.h:159
UniquePtr< NumericVector< Real > > v0_ptr
Definition: copss.h:200
std::size_t random_seed
Definition: copss.h:163
PetscRandom rand_ctx
Definition: copss.h:214
bool adaptive_dt
Definition: copss.h:164
void create_periodic_boundary()
Definition: copss.C:581
unsigned int n_chebyshev_failure
Definition: copss.h:197
Definition: fix_factory.h:22
unsigned int w_var
Definition: copss.h:187
unsigned int neighbor_list_update_interval
Definition: copss.h:224
std::string stokes_solver_type
Definition: copss.h:150
Vec U0
Definition: copss.h:211
unsigned int dim
Definition: copss.h:114
Real max_mesh_size
Definition: copss.h:179
std::vector< Real > vel0
Definition: copss.h:227
std::string error_msg
Definition: copss.h:86
Real tc
Definition: copss.h:108
void read_physical_info()
Definition: copss.C:122
std::string schur_pc_type
Definition: copss.h:149
GetPot input_file
Definition: copss.h:90
Vec ROUT
Definition: copss.h:211
bool update_neighbor_list_everyStep
Definition: copss.h:223
unsigned int max_n_cheb
Definition: copss.h:154
Real alpha
Definition: copss.h:139
void read_restart_time()
Definition: copss.C:443
Vec R0
Definition: copss.h:211
Vec dw
Definition: copss.h:211
Vec R_mid
Definition: copss.h:211
std::vector< bool > inlet
Definition: copss.h:118
void read_chebyshev_info()
Definition: copss.C:334
bool cheb_converge
Definition: copss.h:196
const Real kB
Definition: copss.h:97
Real hminf
Definition: copss.h:194
std::vector< Fix::type_force > forces
Definition: copss.h:134
void create_brownian_system(EquationSystems &equation_systems)
Definition: copss.C:819
int check_libmesh()
Definition: copss.C:39
Real muc
Definition: copss.h:111
unsigned int p_var
Definition: copss.h:187
Definition: brownian_system.h:58
virtual void attach_object_mesh(PMLinearImplicitSystem &system)=0
Definition: pm_periodic_boundary.h:46
unsigned int u_var
Definition: copss.h:187
Real hmin
Definition: copss.h:195
std::vector< std::string > output_file
Definition: copss.h:174
Copss(CopssInit &init)
Definition: copss.C:27
SerialMesh * mesh
Definition: copss.h:176
virtual void create_object()=0
bool print_info
Definition: copss.h:95
int max_linear_iterations
Definition: copss.h:142
bool compute_eigen
Definition: copss.h:158
std::vector< Real > inlet_pressure
Definition: copss.h:119
StokesSolverType solver_type
Definition: copss.h:151
Real viscosity
Definition: copss.h:101
Real T
Definition: copss.h:99
bool with_hi
Definition: copss.h:161
void create_domain_mesh()
Definition: copss.C:496
Real eig_min
Definition: copss.h:198
unsigned int write_interval
Definition: copss.h:173
Real tol_cheb
Definition: copss.h:155
unsigned int NP
Definition: copss.h:192
Real search_radius_e
Definition: copss.h:180
Real max_dr
Definition: copss.h:166
const int o_precision
Definition: copss.h:388
std::vector< bool > periodicity
Definition: copss.h:117
bool generate_mesh
Definition: copss.h:125
Vec dw_mid
Definition: copss.h:211
void read_restart_eigenvalue()
Definition: copss.C:469
void fixman_integrate(EquationSystems &equation_systems, unsigned int &i)
Definition: copss.C:859
PetscScalar coef
Definition: copss.h:215
PMPeriodicBoundary * pm_periodic_boundary
Definition: copss.h:183
virtual void read_ggem_info()=0
unsigned int numForceTypes
Definition: copss.h:132
ExodusII_IO * exodus_ptr
Definition: copss.h:201
Real tol_eigen
Definition: copss.h:157
void read_force_info()
Definition: copss.C:260
Real eig_factor
Definition: copss.h:156
void attach_period_boundary(PMLinearImplicitSystem &system)
Definition: copss.C:683
Real schur_user_ksp_atol
Definition: copss.h:148
std::vector< unsigned int > shear_direction
Definition: copss.h:122
std::vector< Real > shear_rate
Definition: copss.h:121
std::vector< bool > shear
Definition: copss.h:120
void read_stokes_solver_info()
Definition: copss.C:294
unsigned int n_vec
Definition: copss.h:193
virtual void create_object_mesh()=0
Real linear_solver_rtol
Definition: copss.h:143
bool debug_info
Definition: copss.h:171
std::string control_fileName
Definition: copss.h:92
void read_domain_info()
Definition: copss.C:158
std::vector< unsigned int > n_mesh
Definition: copss.h:127
void read_run_info()
Definition: copss.C:369
Parallel::Communicator * comm_in
Definition: copss.h:84
bool user_defined_pc
Definition: copss.h:145
EquationSystems create_equation_systems()
Definition: copss.C:611
Real schur_user_ksp_rtol
Definition: copss.h:147
PetscViewer viewer
Definition: copss.h:212
std::vector< Point > center0
Definition: copss.h:217
Real hmaxf
Definition: copss.h:194
Definition: pm_linear_implicit_system.h:52
Real linear_solver_atol
Definition: copss.h:144
virtual void write_object(unsigned int step_id)=0
std::vector< Real > max_dr_coeff
Definition: copss.h:165
void read_system_info()
Definition: copss.C:109
Real search_radius_p
Definition: copss.h:180
const Real PI
Definition: copss.h:98
Real min_mesh_size
Definition: copss.h:179
virtual void run(EquationSystems &equation_systems)=0
std::string wall_type
Definition: copss.h:115
std::vector< Real > vel1
Definition: copss.h:228
bool restart
Definition: copss.h:167
bool reinit_stokes
Definition: copss.h:191
Real kBT
Definition: copss.h:100
Vec RIN
Definition: copss.h:211
BrownianSystem * brownian_sys
Definition: copss.h:216
virtual void read_particle_info()=0
EquationSystems init_system(std::string input_file)
Definition: copss.C:82
unsigned int istart
Definition: copss.h:220
Real fc
Definition: copss.h:110
FixFactory * fix_factory
Definition: copss.h:131
std::string test_name
Definition: copss.h:94
Real Db
Definition: copss.h:104
unsigned int n_relax_step
Definition: copss.h:170
std::string domain_mesh_file
Definition: copss.h:126
~Copss()
Definition: copss.C:34
Real real_time
Definition: copss.h:222
unsigned int o_step
Definition: copss.h:221
PointMesh< 3 > * point_mesh
Definition: copss.h:177
bool schur_user_ksp
Definition: copss.h:146
virtual void set_parameters(EquationSystems &equation_systems)=0
bool neighbor_list_update_flag
Definition: copss.h:226
Real drag_c
Definition: copss.h:103
unsigned int v_var
Definition: copss.h:187
bool with_brownian
Definition: copss.h:162
std::size_t restart_step
Definition: copss.h:168
std::vector< std::string > forceTypes
Definition: copss.h:133
void end_time(struct tm *timeinfo)
Definition: copss.C:74
Mat M
Definition: copss.h:213
void start_time(struct tm *timeinfo)
Definition: copss.C:65
std::string particle_type
Definition: copss.h:105
unsigned int timestep_duration
Definition: copss.h:225
void solve_undisturbed_system(EquationSystems &equation_systems)
Definition: copss.C:787
Real hmax
Definition: copss.h:195
const std::string out_system_filename
Definition: copss.h:199
Real uc
Definition: copss.h:109
std::string output_msg
Definition: copss.h:88
Definition: brownian_system.h:72
std::vector< Real > wall_params
Definition: copss.h:116