Skip to content

Commit

Permalink
Fix stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Michele Vascellari authored and Michele Vascellari committed Dec 30, 2017
1 parent 464709d commit c6ae60d
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 3 deletions.
9 changes: 9 additions & 0 deletions input_C2SM.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# input yaml file
model:
type: C2SM
parameters: [1e6, 50e6, 0.3, 1e8, 100e6, 0.6]

operating_conditions:
T: 1000
t: 0.01
dt: 1e-6
1 change: 0 additions & 1 deletion main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,6 @@ int main(int argc, char **argv)
template <typename T> void runReactor(ReactorT<T> reactor, YAML::Node config)
{
dvector parameters = config["model"]["parameters"].as<dvector>();
std::cout << "Init Reactor with SFOR" << '\n';
reactor.setModelParameters(parameters);
reactor.printParameters();

Expand Down
2 changes: 1 addition & 1 deletion plot_solution.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
data = pd.read_csv('solution.csv')
#plt.plot('time', 'y0', data=data, marker='x')
dplot = DualPlot()
dplot.plot_left('time', 'y0', data=data, marker='x')
dplot.plot_left('time', 'y0', data=data)
dplot.plot_right('time', 'Temperature', data=data)
dplot.set_ylabel_left('Volatile yield')
dplot.set_ylabel_right('Temp, K')
Expand Down
2 changes: 1 addition & 1 deletion reactort.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ template <class T>
ReactorT<T>::ReactorT(): isoThermal(true)
{
// do nothing keep model initialized
std::cout << "Construct ReactorT()" << '\n';
//std::cout << "Construct ReactorT()" << '\n';
}

template <class T>
Expand Down

0 comments on commit c6ae60d

Please sign in to comment.