Chaste  Build::
MicrovesselSolver.hpp
1 /*
2 
3 Copyright (c) 2005-2016, University of Oxford.
4  All rights reserved.
5 
6  University of Oxford means the Chancellor, Masters and Scholars of the
7  University of Oxford, having an administrative office at Wellington
8  Square, Oxford OX1 2JD, UK.
9 
10  This file is part of Chaste.
11 
12  Redistribution and use in source and binary forms, with or without
13  modification, are permitted provided that the following conditions are met:
14  * Redistributions of source code must retain the above copyright notice,
15  this list of conditions and the following disclaimer.
16  * Redistributions in binary form must reproduce the above copyright notice,
17  this list of conditions and the following disclaimer in the documentation
18  and/or other materials provided with the distribution.
19  * Neither the name of the University of Oxford nor the names of its
20  contributors may be used to endorse or promote products derived from this
21  software without specific prior written permission.
22 
23  THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
24  AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
25  IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
26  ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
27  LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
28  CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
29  GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
30  HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
31  LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
32  OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
33 
34  */
35 
36 #ifndef MICROVESSELSOLVER_HPP_
37 #define MICROVESSELSOLVER_HPP_
38 
39 #include <vector>
40 #include <string>
41 
42 #include "StructuralAdaptationSolver.hpp"
43 #include "SmartPointers.hpp"
44 #include "VesselNetwork.hpp"
45 #include "AbstractDiscreteContinuumSolver.hpp"
46 #include "AbstractCellPopulation.hpp"
47 #include "AngiogenesisSolver.hpp"
48 #include "RegressionSolver.hpp"
49 
55 template<unsigned DIM>
57 {
61  boost::shared_ptr<VesselNetwork<DIM> > mpNetwork;
62 
66  unsigned mOutputFrequency;
67 
71  boost::shared_ptr<OutputFileHandler> mpOutputFileHandler;
72 
76  std::vector<boost::shared_ptr<AbstractDiscreteContinuumSolver<DIM> > > mDiscreteContinuumSolvers;
77 
81  boost::shared_ptr<StructuralAdaptationSolver<DIM> > mpStructuralAdaptationSolver;
82 
86  boost::shared_ptr<AngiogenesisSolver<DIM> > mpAngiogenesisSolver;
87 
91  boost::shared_ptr<RegressionSolver<DIM> > mpRegressionSolver;
92 
98 
103 
104 public:
105 
110 
114  virtual ~MicrovesselSolver();
115 
120  static boost::shared_ptr<MicrovesselSolver> Create();
121 
126  void AddDiscreteContinuumSolver(boost::shared_ptr<AbstractDiscreteContinuumSolver<DIM> > pDiscreteContinuumSolver);
127 
132  std::vector<boost::shared_ptr<AbstractDiscreteContinuumSolver<DIM> > > GetDiscreteContinuumSolvers();
133 
137  void Increment();
138 
142  void Run();
143 
148  void SetAngiogenesisSolver(boost::shared_ptr<AngiogenesisSolver<DIM> > pAngiogenesisSolver);
149 
154  void SetOutputFileHandler(boost::shared_ptr<OutputFileHandler> pFileHandler);
155 
160  void SetOutputFrequency(unsigned frequency);
161 
166  void SetUpdatePdeEachSolve(bool doUpdate);
167 
172  void SetStructuralAdaptationSolver(boost::shared_ptr<StructuralAdaptationSolver<DIM> > pStructuralAdaptationSolver);
173 
181  void SetupFromModifier(AbstractCellPopulation<DIM,DIM>& rCellPopulation,
182  units::quantity<unit::length> cellReferenceLength,
183  units::quantity<unit::concentration> cellReferenceConcentration,
184  const std::string& rDirectory);
185 
189  void Setup();
190 
195  void SetDiscreteContinuumSolversHaveCompatibleGridIndexing(bool compatibleIndexing);
196 
201  void SetVesselNetwork(boost::shared_ptr<VesselNetwork<DIM> > pNetwork);
202 
207  void SetRegressionSolver(boost::shared_ptr<RegressionSolver<DIM> > pRegressionSolver);
208 
213  void UpdateCellData(std::vector<std::string> labels);
214 
215 };
216 
217 #endif /* MICROVESSELSOLVER_HPP_ */
void SetVesselNetwork(boost::shared_ptr< VesselNetwork< DIM > > pNetwork)
void SetUpdatePdeEachSolve(bool doUpdate)
boost::shared_ptr< OutputFileHandler > mpOutputFileHandler
void SetAngiogenesisSolver(boost::shared_ptr< AngiogenesisSolver< DIM > > pAngiogenesisSolver)
void SetOutputFileHandler(boost::shared_ptr< OutputFileHandler > pFileHandler)
boost::shared_ptr< AngiogenesisSolver< DIM > > mpAngiogenesisSolver
void AddDiscreteContinuumSolver(boost::shared_ptr< AbstractDiscreteContinuumSolver< DIM > > pDiscreteContinuumSolver)
void SetStructuralAdaptationSolver(boost::shared_ptr< StructuralAdaptationSolver< DIM > > pStructuralAdaptationSolver)
void SetRegressionSolver(boost::shared_ptr< RegressionSolver< DIM > > pRegressionSolver)
std::vector< boost::shared_ptr< AbstractDiscreteContinuumSolver< DIM > > > GetDiscreteContinuumSolvers()
boost::shared_ptr< StructuralAdaptationSolver< DIM > > mpStructuralAdaptationSolver
void SetDiscreteContinuumSolversHaveCompatibleGridIndexing(bool compatibleIndexing)
static boost::shared_ptr< MicrovesselSolver > Create()
bool mDiscreteContinuumSolversHaveCompatibleGridIndexing
void SetupFromModifier(AbstractCellPopulation< DIM, DIM > &rCellPopulation, units::quantity< unit::length > cellReferenceLength, units::quantity< unit::concentration > cellReferenceConcentration, const std::string &rDirectory)
void UpdateCellData(std::vector< std::string > labels)
std::vector< boost::shared_ptr< AbstractDiscreteContinuumSolver< DIM > > > mDiscreteContinuumSolvers
boost::shared_ptr< RegressionSolver< DIM > > mpRegressionSolver
void SetOutputFrequency(unsigned frequency)
boost::shared_ptr< VesselNetwork< DIM > > mpNetwork