staneuski / dualFuelEngine

OpenFOAM solver based on phenomenological compression model for dual-fuel marine engines
GNU Affero General Public License v3.0
13 stars 3 forks source link

Compile and run with OpenFOAM-5 #6

Closed vl-zenkin closed 5 years ago

vl-zenkin commented 5 years ago
wmake solvers/multiCompression/
wmake solvers/multiCompression/
Making dependency list for source file multiCompression.C
could not open file setRootCaseLists.H for source file multiCompression.C due to No such file or directory
g++ -std=c++11 -m32 -Dlinux -DWM_ARCH_OPTION=32 -DWM_DP -DWM_LABEL_SIZE=32 -Wall -Wextra -Wold-style-cast -Wnon-virtual-dtor -Wno-unused-parameter -Wno-invalid-offsetof -O3  -DNoRepository -ftemplate-depth-100 -I/home/zenkin/OpenFOAM/OpenFOAM-5.x/src/finiteVolume/lnInclude -I/home/zenkin/OpenFOAM/OpenFOAM-5.x/src/meshTools/lnInclude -I/home/zenkin/OpenFOAM/OpenFOAM-5.x/src/sampling/lnInclude -IlnInclude -I. -I/home/zenkin/OpenFOAM/OpenFOAM-5.x/src/OpenFOAM/lnInclude -I/home/zenkin/OpenFOAM/OpenFOAM-5.x/src/OSspecific/POSIX/lnInclude   -fPIC -c multiCompression.C -o Make/linuxGccDPInt32Opt/multiCompression.o
multiCompression.C:46:14: fatal error: setRootCaseLists.H: Нет такого файла или каталога
     #include "setRootCaseLists.H"
              ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
/home/zenkin/OpenFOAM/OpenFOAM-5.x/wmake/rules/General/transform:25: recipe for target 'Make/linuxGccDPInt32Opt/multiCompression.o' failed
make: *** [Make/linuxGccDPInt32Opt/multiCompression.o] Error 1
vl-zenkin commented 5 years ago
  1. Change includes in multiCompression.C:
    
    diff a/solvers/multiCompression/multiCompression.C b/solvers/multiCompression/multiCompression.C

int main(int argc, char *argv[]) { @@ -46 +46 @@

  1. Delete .orig extensions of BCs in 0/ folders to run tutorial cases

  2. Change path in meshQualityDict to run quadPiston case:

    
    diff a/tutorials/multiCompression/quadPiston/system/meshQualityDict b/tutorials/multiCompression/quadPiston/system/meshQualityDict

@@ -17 +17 @@

  1. Rename name of surfaceFeaturesDict file to surfaceFeatureExtractDict and change command in makeMesh script
    
    diff a/tutorials/multiCompression/quadPiston/makeMesh b/tutorials/multiCompression/quadPiston/makeMesh

@@ -57 +57 @@

staneuski commented 5 years ago

Run v5x-compile script:

bash -c "$(wget -qO- https://github.com/StasF1/dualFuelEngine/blob/master/etc/v5x-compile)"
staneuski commented 4 years ago

After 270355f commit all OpenFOAM versions older than dev.20200414 are unsupported.