Ingmar Schoegl
91c7bf14d7
[Base] finalize introduction of Solution object in C++ layer
2019-11-08 15:12:36 -05:00
Ingmar Schoegl
cf315f7c5e
[oneD] change thermo type passed to StFlow constructor
...
- allow for 'ThermoPhase`, and cast to 'IdealGasPhase' internally
2019-11-08 15:12:36 -05:00
Ingmar Schoegl
2a9554c134
[Base] consolidate shared_ptr access in Solution
2019-11-08 15:12:36 -05:00
Ingmar Schoegl
58fc8f770c
Replace doublereal by double
2019-11-08 15:12:36 -05:00
Ingmar Schoegl
9f6cba3c33
[samples] replace convenience wrapper classes by C++ Solution
2019-11-08 15:12:36 -05:00
Paul
c4aff04418
Updated URL in references to Cantera's license.
2019-09-23 22:02:33 -04:00
Ingmar Schoegl
bc8b4be654
[Reactor] clarify FlowDevice interface
...
* differentiated Valve::setValveCoeff from PressureController::setPressureCoeff
and introduced MassFlowController::setMassFlowCoeff for consistency.
* introduced FlowDevice::setTimeFunction and FlowDevice::setPressureFunction to
differentiate time-dependent and pressure-dependent functions.
* introduced arbitrary pressure dependence for PressureController
* deprecated FlowDevice::setFunction which is replaced by time and pressure
specific functions.
* introduced properties Valve.valve_coeff / PressureController.pressure_coeff /
MassFlowController.mass_flow_coeff in Cython interface and deprecated
Valve.set_pressure_coeff / PressureController.set_pressure_coeff
* deprecated corresponding function calls in clib interface
* deprecate FlowDevice.setParameters (which was only used by MATLAB interface)
2019-08-05 17:01:05 -04:00
Bryan W. Weber
ed59ae9516
[Samples] Update to not use PureFluid wrapper
...
Update rankine.cpp sample to avoid using the deprecated PureFluid wrapper
classes. Update the small changes in the blessed output.
2019-07-30 13:24:11 -04:00
Ray Speth
674701b0c2
[Samples] Fix include path for compiling C++ samples with 'scons samples'
2019-06-25 22:30:59 -04:00
Bryan W. Weber
444ef91e0f
Build the samples on the CI services
...
Requires libomp on macOS from homebrew. OpenMP with Visual C/C++ requires
the loop index to be a signed type (from OpenMP < 3.0).
2019-06-17 10:29:20 -04:00
Bryan W. Weber
142f533229
Correct flag and libs for OpenMP on macOS
...
Apple's clang on macOS requires the libomp to link. Apple symlinks gcc
to clang, so it can't be detected as clang by executable name
2019-06-17 10:29:20 -04:00
Bryan W. Weber
3588be16f3
CMake use Accelerate even if OpenMP is also used
...
For samples, make sure that OpenMP and Accelerate are not exclusive
options on macOS
2019-06-17 10:29:20 -04:00
Bryan W. Weber
007ecf0c7c
Include boost_inc_dir when building the samples
2019-06-17 10:29:20 -04:00
Bryan W. Weber
9a5c2708e5
Replace the compiler variables during conda build
...
The build compilers should not be specified into the sample templates
2019-06-13 14:36:54 -04:00
Bryan W. Weber
265032da8f
Remove build-system specific env vars on macOS
...
The isysroot and mmacosx-min-version flags are needed to build the
Cantera library, but not to actually use it on macOS. They should be
removed because users don't need these and should use the SDK installed
with XCode.
2019-06-13 14:36:54 -04:00
Bryan W. Weber
4026c17915
Add /usr/local/include to cmake incdirs
...
By default, CMake uses the system SDK on macOS as the system root by
setting the isysroot flag to clang. This setting removes /usr/local from
the include search path.
2019-03-15 14:44:43 -04:00
Bryan W. Weber
cb008a95d7
Add the Accelerate framework to the CMake builds of the samples
2019-03-15 14:44:43 -04:00
Ray Speth
dc09040274
[Samples] Fix compilation of Blasius BVP sample with 'scons samples'
2019-02-04 16:38:40 -05:00
Ray Speth
1ec9ce2c01
[1D/samples] Fix C++ flame speed example
...
Fixes a regression introduced in 6f45b241 .
2019-02-04 16:38:40 -05:00
Ray Speth
600580ead4
[Samples] Install build scripts for Blasius BVP example
2018-11-11 22:17:20 -05:00
Ray Speth
c26db356e3
[Samples] Remove unused methods of class BoundaryValueProblem
2018-11-11 22:17:20 -05:00
Ray Speth
b9a5913af0
[Samples] Fix Blasius example to work after removal of Domain1D::residual
2018-11-11 22:17:20 -05:00
Ray Speth
8c213da932
[1D] Fix grid refinement for classes not derived from StFlow
...
This includes user-developed flow classes, as well as the BoundaryValueProblem
class used in the 'blasius' example.
2018-11-11 22:17:20 -05:00
Ray Speth
78d5809d6f
[Samples] Add C++ OpenMP example
2017-01-28 15:07:15 -05:00
Ray Speth
f959fa67c9
[Samples/Doc] Generate CMakeLists.txt files for C++ and F90 samples
2016-10-28 23:39:33 -04:00
Ray Speth
af076bad0b
[Samples] Replace printf with writelog
2016-10-28 19:05:24 -04:00
Ray Speth
c8d3aa23d2
[Samples] Remove unused function 'writeCanteraHeader'
2016-10-13 18:40:03 -04:00
Ray Speth
ecbfecd7fd
Replace existing copyright notices with uniform copyright/license info
2016-10-10 22:19:01 -04:00
Ray Speth
bc609ce2da
[SCons] Fix Makefiles generated for C++ examples
...
- Use CXXFLAGS to pass flags to C++ compiler (not CCFLAGS)
- Set CXXFLAGS based on flags that Cantera was compiled with (which will include
things like -pthread and -std=c++0x as necessary
- Remove incorrect / unused target for the target binary
- Add the generated binary to things remove by 'make clean'
2016-07-22 13:09:54 -04:00
Ray Speth
2c005759b7
[Thermo] Combine SpeciesThermo and GeneralSpeciesThermo
...
The new class is named MultiSpeciesThermo, so that (eventually) the name
SpeciesThermo can be used for the single-species class SpeciesThermoInterpType.
Currently, trivial wrappers for classes named SpeciesThermo and
GeneralSpeciesThermo to maintain backwards compatibiity for Cantera 2.3.
2016-06-23 17:00:15 -04:00
Ray Speth
c64b714386
[Reactor] Add flow-device-specific methods for setting coefficients
2016-06-23 11:53:20 -04:00
Ray Speth
14b9454819
[C++] Clean up of top-level headers
...
These headers should only include general functionality, i.e. base classes and
factory methods. Users working directly with derived types can include the
relevant headers directly.
Deprecate some top-level headers which are not really useful.
2016-05-14 16:10:10 -04:00
Ray Speth
f2b68d8c34
[Examples] General cleanup of C++ flamespeed example
2016-04-14 15:31:50 -04:00
Ray Speth
b50ef03838
[Examples] Update C++ flamespeed to use current best-practices
...
Wider, uniform initial grid; initial profiles with zero-gradient section
on both ends of the domain; skip initial fixed-temperature solve.
2016-04-14 15:31:49 -04:00
Ray Speth
8b62a59403
[SCons] Generate SConstruct and Makefile for LiC6 electrode example
2016-04-06 22:16:48 -04:00
Ray Speth
0a3927a077
[SCons] SConstruct for C++ demos inherits compiler and options
...
Use the same values for the compiler name and the compiler flags as were used
when compiling Cantera.
2016-04-06 22:07:51 -04:00
Ray Speth
1aa28f9310
Let the constructor for std::string do its job
2016-03-27 22:19:38 -04:00
pwcnorthrop
1183479f88
Add RedlichKister tests and sample case for LiC6 electrode
...
See #293
2016-02-17 23:34:36 -05:00
Ray Speth
f44b5fed57
Replace usage of int2str with cppformat and deprecate int2str
2016-02-04 19:11:49 -05:00
Ray Speth
7562d79bad
Remove unnecessary calls to ostream.close()
2015-11-23 18:06:54 -05:00
Ray Speth
4382ae6c85
Clean up comments in Thermo class source files
2015-11-09 17:34:46 -05:00
Ray Speth
0647823ada
Replace DATA_PTR macro with calls to data()
2015-10-17 18:58:50 -04:00
Ray Speth
a945ef2c23
Make use of initializer lists where appropriate
2015-10-17 18:58:50 -04:00
Ray Speth
f9375e1a09
Use locks/mutexes from the standard library instead of Boost.Thread
...
This eliminates the need to link against any of the compiled Boost libraries,
and means that we can always build in thread-safe mode
2015-10-17 18:58:50 -04:00
Ray Speth
e131766b71
Replace auto_ptr with unique_ptr
...
auto_ptr is deprecated in c++11
2015-10-14 18:45:23 -04:00
Ray Speth
0b2c7b59b8
Replace printf with writelogf in all library code
2015-10-14 18:45:23 -04:00
Ray Speth
71bb73b728
Eliminate unnecessary calles to std::string.c_str()
2015-10-14 18:45:22 -04:00
Ray Speth
bfb20e1f50
Consistently use vector_fp and vector_int typedefs
2015-08-02 23:06:16 -04:00
Ray Speth
acdf9cf0ed
Clean up interstitial whitespace
...
Remove extra space around operators, between words, etc.
2015-08-02 23:06:16 -04:00
Ray Speth
e4c45b6429
General whitespace cleanup
...
Remove unnecessary blank lines and trailing whitespace. Replace tabs with
spaces.
2015-08-02 23:06:15 -04:00