Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F82706481
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
Fri, Sep 13, 00:01
Size
849 B
Mime Type
text/x-c
Expires
Sun, Sep 15, 00:01 (2 d)
Engine
blob
Format
Raw Data
Handle
20736816
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