Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82259498
transport_program.cpp
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 10, 10:52
Size
849 B
Mime Type
text/x-c
Expires
Thu, Sep 12, 10:52 (2 d)
Engine
blob
Format
Raw Data
Handle
20670461
Attached To
rSPECMICP SpecMiCP / ReactMiCP
transport_program.cpp
View Options
#include "catch.hpp"
#include "utils.hpp"
#include "reactmicp/systems/saturated_diffusion/transport_program.hpp"
using
namespace
specmicp
;
using
namespace
specmicp
::
reactmicp
;
using
namespace
specmicp
::
reactmicp
::
systems
;
using
namespace
specmicp
::
reactmicp
::
systems
::
siasaturated
;
TEST_CASE
(
"Transport program"
,
"[Transport, Diffusion, Finite Element, Solver]"
)
{
std
::
shared_ptr
<
database
::
DataContainer
>
database
=
get_test_carbo_database
();
int
nb_nodes
=
5
;
EquilibriumState
initial_state
=
sample_carbo_composition
(
database
);
std
::
shared_ptr
<
mesh
::
Mesh1D
>
themesh
=
std
::
make_shared
<
mesh
::
Mesh1D
>
(
nb_nodes
-
1
,
1e-3
,
0.001
);
auto
parameters
=
std
::
make_shared
<
SaturatedDiffusionTransportParameters
>
(
1e-6
,
0.2
);
SECTION
(
"Initialization"
)
{
SaturatedDiffusionProgram
(
themesh
,
database
,
parameters
);
}
}
Event Timeline
Log In to Comment