OpenImpala
Image-based parallel transport property solver
Loading...
Searching...
No Matches
REVStudy.H
Go to the documentation of this file.
1
8#ifndef REV_STUDY_H
9#define REV_STUDY_H
10
12
13#include <AMReX_Box.H>
14#include <AMReX_BoxArray.H>
15#include <AMReX_DistributionMapping.H>
16#include <AMReX_Geometry.H>
17#include <AMReX_REAL.H>
18#include <AMReX_iMultiFab.H>
19
20#include <filesystem>
21#include <string>
22#include <vector>
23
24namespace OpenImpala {
25
27struct REVConfig {
28 int num_samples = 3;
29 std::vector<int> sizes;
30 int phase_id = 1;
31 int box_size = 32;
32 int verbose = 1;
33 bool write_plotfiles = false;
35 std::filesystem::path results_path;
36 std::string csv_filename = "rev_study_Deff.csv";
37};
38
51void runREVStudy(const amrex::Geometry& geom_full, const amrex::BoxArray& ba_full,
52 const amrex::DistributionMapping& dm_full, const amrex::iMultiFab& mf_phase_full,
53 const REVConfig& config);
54
55} // namespace OpenImpala
56
57#endif // REV_STUDY_H
HYPRE structured-grid solver for periodic homogenisation cell problems.
Definition CathodeWrite.cpp:12
SolverType
Specifies the HYPRE structured solver algorithm to use.
Definition Tortuosity.H:44
@ FlexGMRES
Definition Tortuosity.H:47
void runREVStudy(const amrex::Geometry &geom_full, const amrex::BoxArray &ba_full, const amrex::DistributionMapping &dm_full, const amrex::iMultiFab &mf_phase_full, const REVConfig &config)
Runs an REV convergence study on the given full-domain phase field.
Definition REVStudy.cpp:27
Configuration for an REV study.
Definition REVStudy.H:27
int phase_id
Phase ID to analyze.
Definition REVStudy.H:30
int box_size
Max AMReX box size.
Definition REVStudy.H:31
SolverType solver_type
Definition REVStudy.H:34
int verbose
Verbosity level.
Definition REVStudy.H:32
std::vector< int > sizes
Target sub-volume edge lengths.
Definition REVStudy.H:29
bool write_plotfiles
Write plotfiles for each chi_k solve.
Definition REVStudy.H:33
std::filesystem::path results_path
Directory for output files.
Definition REVStudy.H:35
std::string csv_filename
CSV output filename.
Definition REVStudy.H:36
int num_samples
Number of random sub-volumes per size.
Definition REVStudy.H:28