瀏覽代碼

function getTimescale added to main.cpp

binary_fuel
Weiye Wang 1 年之前
父節點
當前提交
0aba332165
共有 16 個檔案被更改,包括 224 行新增5 行删除
  1. 二進制
      DropletCombustion4
  2. +1
    -1
      Makefile
  3. +63
    -0
      UserData.d
  4. 二進制
      UserData.o
  5. +1
    -0
      gridRoutines.d
  6. 二進制
      gridRoutines.o
  7. +6
    -2
      main.cpp
  8. +77
    -0
      main.d
  9. 二進制
      main.o
  10. +1
    -0
      parse.d
  11. 二進制
      parse.o
  12. +3
    -2
      residue.cpp
  13. +67
    -0
      residue.d
  14. 二進制
      residue.o
  15. +5
    -0
      solution.d
  16. 二進制
      solution.o

二進制
DropletCombustion4 查看文件


+ 1
- 1
Makefile 查看文件

@@ -7,7 +7,7 @@
compiler =g++
CANTERA_DIR =/opt/scientific/cantera-2.4_gnu_blas
IDA_DIR =/opt/scientific/sundials-3.1.1_intel_mkl
EXE =DropletCombustion3
EXE =DropletCombustion4
#DESTDIR =~/bin
DESTDIR = ../example



+ 63
- 0
UserData.d 查看文件

@@ -0,0 +1,63 @@
UserData.o: UserData.cpp UserData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/IdealGasMix.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/IdealGasPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/ThermoPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Phase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ctexceptions.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/fmt.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ct_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/config.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/core.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format-inl.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/printf.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/ostream.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/ostream.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Elements.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ct_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Species.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/AnyMap.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/global.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/AnyMap.inl.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ValueCache.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/MultiSpeciesThermo.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/SpeciesThermoInterpType.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/speciesThermoTypes.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/GasKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/BulkKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Kinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/ThermoPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/StoichManager.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/stringUtils.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Reaction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/utilities.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/global.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RxnRates.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/reaction_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Falloff.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RateCoeffMgr.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RxnRates.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/ThirdBodyCalc.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/FalloffMgr.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/reaction_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/FalloffFactory.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/FactoryBase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Reaction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/importKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/stringUtils.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportFactory.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportBase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTransportParams.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportParams.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/numerics/DenseMatrix.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/Array.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/utilities.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTranInteraction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTransportData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LTPspecies.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/xml.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ctexceptions.h \
gridRoutines.h parse.h parse.hpp

二進制
UserData.o 查看文件


+ 1
- 0
gridRoutines.d 查看文件

@@ -0,0 +1 @@
gridRoutines.o: gridRoutines.cpp gridRoutines.h parse.h parse.hpp

二進制
gridRoutines.o 查看文件


+ 6
- 2
main.cpp 查看文件

@@ -178,6 +178,8 @@ int main(){
printTimescaleHeader(data);
printSpaceTimeOutput(tNow, &y, data->output, data);
printSpaceTimeOutput(tNow, &y, data->gridOutput, data);

getTimescale(data,&y) ;
printTimescaleOutput(tNow, &y, data->timescaleOutput,data);

@@ -306,8 +308,10 @@ int main(){
// printSpaceTimeRates(tNow, ydot, data);
//}
}

if(count%data->nSaves==0 ){
getTimescale(data,&y);
if(count%data->nSaves==0){
printTimescaleOutput(tNow,&y, data->timescaleOutput,data);
//printSpaceTimeOutput(tNow, &y, data->output, data);
//if(data->writeRates){


+ 77
- 0
main.d 查看文件

@@ -0,0 +1,77 @@
main.o: main.cpp UserData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/IdealGasMix.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/IdealGasPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/ThermoPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Phase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ctexceptions.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/fmt.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ct_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/config.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/core.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format-inl.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/printf.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/ostream.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/ostream.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Elements.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ct_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Species.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/AnyMap.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/global.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/AnyMap.inl.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ValueCache.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/MultiSpeciesThermo.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/SpeciesThermoInterpType.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/speciesThermoTypes.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/GasKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/BulkKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Kinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/ThermoPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/StoichManager.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/stringUtils.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Reaction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/utilities.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/global.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RxnRates.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/reaction_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Falloff.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RateCoeffMgr.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RxnRates.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/ThirdBodyCalc.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/FalloffMgr.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/reaction_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/FalloffFactory.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/FactoryBase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Reaction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/importKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/stringUtils.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportFactory.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportBase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTransportParams.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportParams.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/numerics/DenseMatrix.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/Array.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/utilities.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTranInteraction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTransportData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LTPspecies.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/xml.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ctexceptions.h \
gridRoutines.h parse.h parse.hpp solution.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_types.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_config.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/nvector/nvector_openmp.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_nvector.h \
residue.h macros.h timing.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/ida/ida.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/ida/ida_direct.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_direct.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_matrix.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_linearsolver.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_iterative.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sunmatrix/sunmatrix_band.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sunlinsol/sunlinsol_lapackband.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_lapack.h

二進制
main.o 查看文件


+ 1
- 0
parse.d 查看文件

@@ -0,0 +1 @@
parse.o: parse.cpp parse.h parse.hpp

二進制
parse.o 查看文件


+ 3
- 2
residue.cpp 查看文件

@@ -1477,10 +1477,11 @@ void getTimescale(UserData data, N_Vector* y){
for(k=1;k<= nsp;k++){
data->time_scale(i,k) = concentra(k)/(wdot_mass(k)+ 1.00e-16) ;
}


}
}


@@ -1520,4 +1521,4 @@ void printTimescaleOutput(double t,N_Vector* y,FILE* output,UserData data)
fprintf(output, "\n");


}
}

+ 67
- 0
residue.d 查看文件

@@ -0,0 +1,67 @@
residue.o: residue.cpp residue.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_types.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_config.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/nvector/nvector_openmp.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_nvector.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/IdealGasMix.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/IdealGasPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/ThermoPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Phase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ctexceptions.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/fmt.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ct_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/config.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/core.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format-inl.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/format.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/printf.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/ostream.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/ext/fmt/ostream.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Elements.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ct_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/Species.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/AnyMap.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/global.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/AnyMap.inl.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ValueCache.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/MultiSpeciesThermo.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/SpeciesThermoInterpType.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/speciesThermoTypes.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/GasKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/BulkKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Kinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/thermo/ThermoPhase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/StoichManager.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/stringUtils.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Reaction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/utilities.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/global.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RxnRates.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/reaction_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Falloff.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RateCoeffMgr.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/RxnRates.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/ThirdBodyCalc.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/FalloffMgr.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/reaction_defs.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/FalloffFactory.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/FactoryBase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/Reaction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/kinetics/importKinetics.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/stringUtils.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportFactory.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportBase.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTransportParams.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportParams.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/numerics/DenseMatrix.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/Array.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/utilities.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTranInteraction.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LiquidTransportData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/LTPspecies.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/transport/TransportData.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/xml.h \
/opt/scientific/cantera-2.4_gnu_blas/include/cantera/base/ctexceptions.h \
UserData.h gridRoutines.h parse.h parse.hpp macros.h timing.hpp

二進制
residue.o 查看文件


+ 5
- 0
solution.d 查看文件

@@ -0,0 +1,5 @@
solution.o: solution.cpp solution.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_types.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_config.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/nvector/nvector_openmp.h \
/opt/scientific/sundials-3.1.1_intel_mkl/include/sundials/sundials_nvector.h

二進制
solution.o 查看文件


Loading…
取消
儲存