CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions

[openFuelCell] pemfcSinglePhaseModel-4.0 on OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree13Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 25, 2019, 03:10
Default
  #21
New Member
 
Muhammad
Join Date: Jan 2019
Location: Malaysia
Posts: 3
Rep Power: 7
muhammadlr95 is on a distinguished road
Thanks Hans, it worked!
muhammadlr95 is offline   Reply With Quote

Old   May 19, 2020, 08:31
Default
  #22
New Member
 
Join Date: May 2020
Posts: 1
Rep Power: 0
swsyoon is on a distinguished road
Hello

It seems the last post about this model is almost a year ago. I recently tried to use this pemfc model in openfoam4 and was able to compile it according to the earlier post. However when I tried to run the main script by typing ' make run' in run directory, I got this error.
I ran blockMesh command to generate mesh file but I cannot see the 'cellRegionAddressing' file that the error message is referring to.

Can you help to fix this issue ?
Thanks,


( pemfcSinglephaseNonIsothermalSolver | tee log.run );
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.0
Exec : pemfcSinglephaseNonIsothermalSolver
Date : May 19 2020
Time : 08:22:14
Host : "ws-Satellite-L655"
PID : 6511
Case : /home/ws/OpenFOAM/ws-4.0/run/pemfcSinglePhaseModel-4.0/run
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading cell properties

galvanostatic run
V = V [1 2 -3 0 0 -1 0] 0.6
Ibar0 = Ibar0 [0 -2 0 0 0 1 0] 7000
Rhat = Rhat [1 4 -3 0 0 -2 0] 1e-05
Rhat0 = Rhat0 [1 4 -3 0 0 -2 0] 1e-05
CL electronic conductivity(kappaCl) = kappaCl [-1 -2 3 0 0 2 0] 1000
GDL electronic conductivity(kappaGdl) = kappaGdl [-1 -2 3 0 0 2 0] 5000
GDL - BP Contact resistance (rContact)= rContact [1 4 -3 0 0 -2 0] 2e-06
BP electronic conductivity(kappaBp) = kappaBp [-1 -2 3 0 0 2 0] 83000
CL thickness (tCl) = tCl [0 1 0 0 0 0 0] 3.7e-06
GDL thickness (tGdl) = tGdl [0 1 0 0 0 0 0] 0.00041
BP thickness (tBp) = tBp [0 1 0 0 0 0 0] 0.003
concentration overpotential constant = etaConCaConstant [0 0 0 0 0 0 0] 0.25

Tinit = Tinit [0 0 0 1 0 0 0] 353

anodeName = fuel_to_electrolyte
fuelInletName = fuelInlet
fuelOutletName = fuelOutlet
fuelAbpName = fuel_to_abp
cathodeName = air_to_electrolyte
airInletName = airInlet
airOutletName = airOutlet
airCbpName = air_to_cbp
electrolyteAnodeName = electrolyte_to_fuel
electrolyteCathodeName = electrolyte_to_air
abpFuelName = abp_to_fuel
cbpAirName = cbp_to_air

Reading cell field T

Reading cell field k



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/ws/OpenFOAM/ws-4.0/run/pemfcSinglePhaseModel-4.0/run/constant/abp/polyMesh/cellRegionAddressing at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 72.

FOAM exiting
ramakant likes this.
swsyoon is offline   Reply With Quote

Old   May 20, 2020, 01:58
Default
  #23
Senior Member
 
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 131
Rep Power: 16
ramakant is on a distinguished road
Quote:
Originally Posted by swsyoon View Post
Hello

It seems the last post about this model is almost a year ago. I recently tried to use this pemfc model in openfoam4 and was able to compile it according to the earlier post. However when I tried to run the main script by typing ' make run' in run directory, I got this error.
I ran blockMesh command to generate mesh file but I cannot see the 'cellRegionAddressing' file that the error message is referring to.

Can you help to fix this issue ?
Thanks,


( pemfcSinglephaseNonIsothermalSolver | tee log.run );
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.0
Exec : pemfcSinglephaseNonIsothermalSolver
Date : May 19 2020
Time : 08:22:14
Host : "ws-Satellite-L655"
PID : 6511
Case : /home/ws/OpenFOAM/ws-4.0/run/pemfcSinglePhaseModel-4.0/run
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading cell properties

galvanostatic run
V = V [1 2 -3 0 0 -1 0] 0.6
Ibar0 = Ibar0 [0 -2 0 0 0 1 0] 7000
Rhat = Rhat [1 4 -3 0 0 -2 0] 1e-05
Rhat0 = Rhat0 [1 4 -3 0 0 -2 0] 1e-05
CL electronic conductivity(kappaCl) = kappaCl [-1 -2 3 0 0 2 0] 1000
GDL electronic conductivity(kappaGdl) = kappaGdl [-1 -2 3 0 0 2 0] 5000
GDL - BP Contact resistance (rContact)= rContact [1 4 -3 0 0 -2 0] 2e-06
BP electronic conductivity(kappaBp) = kappaBp [-1 -2 3 0 0 2 0] 83000
CL thickness (tCl) = tCl [0 1 0 0 0 0 0] 3.7e-06
GDL thickness (tGdl) = tGdl [0 1 0 0 0 0 0] 0.00041
BP thickness (tBp) = tBp [0 1 0 0 0 0 0] 0.003
concentration overpotential constant = etaConCaConstant [0 0 0 0 0 0 0] 0.25

Tinit = Tinit [0 0 0 1 0 0 0] 353

anodeName = fuel_to_electrolyte
fuelInletName = fuelInlet
fuelOutletName = fuelOutlet
fuelAbpName = fuel_to_abp
cathodeName = air_to_electrolyte
airInletName = airInlet
airOutletName = airOutlet
airCbpName = air_to_cbp
electrolyteAnodeName = electrolyte_to_fuel
electrolyteCathodeName = electrolyte_to_air
abpFuelName = abp_to_fuel
cbpAirName = cbp_to_air

Reading cell field T

Reading cell field k



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/ws/OpenFOAM/ws-4.0/run/pemfcSinglePhaseModel-4.0/run/constant/abp/polyMesh/cellRegionAddressing at line 0.

From function regIOobject::readStream()
in file db/regIOobject/regIOobjectRead.C at line 72.

FOAM exiting
Yes...I can help you
please follow the steps to run the program and it is working fine for me.
My email id:ramakantgadhewal@gmail.com
mariduake likes this.
ramakant is offline   Reply With Quote

Old   November 10, 2020, 02:27
Default
  #24
New Member
 
Maricarmen Duarte Ake
Join Date: Jul 2019
Posts: 6
Rep Power: 6
mariduake is on a distinguished road
I'm also checking this code. I'm new to OpenFoam, I used the Fluent module, but I wanted to check this open source software. My question is, do you upload a geometry? because I can't find it in the files. I am reading about meshing here https://www.cfd.at/downloads/FoamTut...ExampleTwo.pdf
So, if I want to run this code, d I have to make my own geometry? Sorry I was accustomed with Fluent. Thank you in advance with your response.
mariduake is offline   Reply With Quote

Old   November 10, 2020, 04:28
Default
  #25
Senior Member
 
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 131
Rep Power: 16
ramakant is on a distinguished road
Quote:
Originally Posted by mariduake View Post
I'm also checking this code. I'm new to OpenFoam, I used the Fluent module, but I wanted to check this open source software. My question is, do you upload a geometry? because I can't find it in the files. I am reading about meshing here https://www.cfd.at/downloads/FoamTut...ExampleTwo.pdf
So, if I want to run this code, d I have to make my own geometry? Sorry I was accustomed with Fluent. Thank you in advance with your response.
Please check it Geometry is already there.
ramakant is offline   Reply With Quote

Old   December 2, 2020, 04:11
Default
  #26
New Member
 
Mattia
Join Date: Nov 2020
Posts: 7
Rep Power: 5
mat16 is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all,

I've split off from the OpenFuelCell thread, the posts that are referring to the package provided here: http://dx.doi.org/10.17632/3gz7pxznzn.1

Apparently that ZIP file was somehow corrupted by someone in the middle... what I mean is that the file "lib/myPatchToPatchInterpolation/mypatchToPatchInterpolation.H" was replaced by the content from "lib/myPatchToPatchInterpolation/myPatchToPatchInterpolation.H", which is why this problem is occurring. It's possible to recover the broken file, by using the original code "patchToPatchInterpolation.H" from OpenFOAM 4.0 as a basis.

After downloading the ZIP file, I've ran the following commands, in order to be able to compile the code with OpenFOAM 4.0, along with the necessary corrections:
Code:
unzip pemfcSinglePhaseModel-4.0.zip
cd pemfcSinglePhaseModel-4.0
cd pemfcSinglePhaseNonIsothermalSolver
find -name "All*" | xargs chmod +x
cp $FOAM_SRC/OpenFOAM/interpolations/patchToPatchInterpolation/patchToPatchInterpolation.H lib/myPatchToPatchInterpolation/mypatchToPatchInterpolation.H
sed -i -e 's=patchToPatchInterpolation=mypatchToPatchInterpolation=g'  -e 's=PatchToPatchInterpolation=myPatchToPatchInterpolation=g' lib/myPatchToPatchInterpolation/mypatchToPatchInterpolation.H
./Allwmake > log.make 2>&1
./Allwmake > log.make2 2>&1
The last 2 commands will create 2 log files: "log.make" and "log.make2", where the second file should have something like this inside:
Code:
...
..../libSinglephasePEMFC.so' is up to date.
...
.../pemfcSinglephaseNonIsothermalSolver' is up to date.
Best regards,
Bruno

Hey everyone,

I downloaded the version of OpenFoam 4.0 on ubuntu 16.04.

https://openfoamwiki.net/index.php/I...OAM-4.0/Ubuntu

I have followed this procedure but it gives me the same error.





Also during the unzip of the file it asks me:



I do yes and it opens correctly.

Someone help me?

Thanks in advance
mat16 is offline   Reply With Quote

Old   December 2, 2020, 06:20
Default
  #27
New Member
 
Maricarmen Duarte Ake
Join Date: Jul 2019
Posts: 6
Rep Power: 6
mariduake is on a distinguished road
I installed the same and i didn't have any problem compiling. I copied wyldckat instructions line by line and it worked out fine. I got the logs correctly. This is what I did:


1. After instalation I ran mkdir -p $FOAM_RUN
2. I copied the zip to the user4.0/run folder
3. I ran the commands line by line and it compiled just fine.
mariduake is offline   Reply With Quote

Old   December 2, 2020, 06:23
Question Error after compiling on the abp
  #28
New Member
 
Maricarmen Duarte Ake
Join Date: Jul 2019
Posts: 6
Rep Power: 6
mariduake is on a distinguished road
Do you have any idea why i have this error. I followed instructions, I even installed OF4.0 instead of 4.1 but I got the same error.


Quote:
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 4.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 4.0
Exec : pemfcSinglephaseNonIsothermalSolver
Date : Dec 02 2020
Time : 05:01:29
Host : "fat-HP-625"
PID : 23372
Case : /home/fat/OpenFOAM/fat-4.0/run/pemfcSinglePhaseModel-4.0/run
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

Create mesh for time = 0

Reading cell properties

galvanostatic run
V = V [1 2 -3 0 0 -1 0] 0.6
Ibar0 = Ibar0 [0 -2 0 0 0 1 0] 7000
Rhat = Rhat [1 4 -3 0 0 -2 0] 1e-05
Rhat0 = Rhat0 [1 4 -3 0 0 -2 0] 1e-05
CL electronic conductivity(kappaCl) = kappaCl [-1 -2 3 0 0 2 0] 1000
GDL electronic conductivity(kappaGdl) = kappaGdl [-1 -2 3 0 0 2 0] 5000
GDL - BP Contact resistance (rContact)= rContact [1 4 -3 0 0 -2 0] 2e-06
BP electronic conductivity(kappaBp) = kappaBp [-1 -2 3 0 0 2 0] 83000
CL thickness (tCl) = tCl [0 1 0 0 0 0 0] 3.7e-06
GDL thickness (tGdl) = tGdl [0 1 0 0 0 0 0] 0.00041
BP thickness (tBp) = tBp [0 1 0 0 0 0 0] 0.003
concentration overpotential constant = etaConCaConstant [0 0 0 0 0 0 0] 0.25

Tinit = Tinit [0 0 0 1 0 0 0] 353

anodeName = fuel_to_electrolyte
fuelInletName = fuelInlet
fuelOutletName = fuelOutlet
fuelAbpName = fuel_to_abp
cathodeName = air_to_electrolyte
airInletName = airInlet
airOutletName = airOutlet
airCbpName = air_to_cbp
electrolyteAnodeName = electrolyte_to_fuel
electrolyteCathodeName = electrolyte_to_air
abpFuelName = abp_to_fuel
cbpAirName = cbp_to_air

Reading cell field T

Reading cell field k



--> FOAM FATAL ERROR:
Cannot find file "points" in directory "abp/polyMesh" in times 0 down to constant

From function Foam::word Foam::Time::findInstance(const Foam::fileName&, const Foam::word&, Foam::IOobject::readOption, const Foam::word&) const
in file db/Time/findInstance.C at line 182.

FOAM exiting
mariduake is offline   Reply With Quote

Old   December 2, 2020, 10:34
Default
  #29
New Member
 
Mattia
Join Date: Nov 2020
Posts: 7
Rep Power: 5
mat16 is on a distinguished road
Hi Maricarmen,

It worked!

Many thanks for your support!

Best regards
mariduake likes this.
mat16 is offline   Reply With Quote

Old   December 16, 2020, 18:14
Post Modification
  #30
New Member
 
Maricarmen Duarte Ake
Join Date: Jul 2019
Posts: 6
Rep Power: 6
mariduake is on a distinguished road
Has anyone tried to modify the fuel? What happens if I change H2 for CH3OH? I think for Methanol model the cathode remains the same, but the anode equations are modified. Has anyone tried to do so?
ramakant likes this.
mariduake is offline   Reply With Quote

Old   December 17, 2020, 05:23
Default
  #31
Senior Member
 
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 131
Rep Power: 16
ramakant is on a distinguished road
Quote:
Originally Posted by mariduake View Post
Has anyone tried to modify the fuel? What happens if I change H2 for CH3OH? I think for Methanol model the cathode remains the same, but the anode equations are modified. Has anyone tried to do so?
Are you writing code for DMFC in OpenFOAM? or trying to modify the PEM fuel cell code?
ramakant is offline   Reply With Quote

Old   December 17, 2020, 13:18
Default
  #32
New Member
 
Maricarmen Duarte Ake
Join Date: Jul 2019
Posts: 6
Rep Power: 6
mariduake is on a distinguished road
Quote:
Originally Posted by ramakant View Post
Are you writing code for DMFC in OpenFOAM? or trying to modify the PEM fuel cell code?

I'm trying to modify it. I know there are other phenomena but I just want to check how this can be done. I saw someone modified the Fluent pem fuel cell module but it didn't say how they did it.
mariduake is offline   Reply With Quote

Old   December 17, 2020, 13:36
Default
  #33
Senior Member
 
Ramakant Gadhewal
Join Date: Apr 2010
Location: Chemical Engineering,National Institute of Technology,Warangal (T.S.),India
Posts: 131
Rep Power: 16
ramakant is on a distinguished road
Quote:
Originally Posted by mariduake View Post
I'm trying to modify it. I know there are other phenomena but I just want to check how this can be done. I saw someone modified the Fluent pem fuel cell module but it didn't say how they did it.
Could you please share the Fluent file?
ramakant is offline   Reply With Quote

Old   December 19, 2020, 11:35
Default
  #34
New Member
 
Mattia
Join Date: Nov 2020
Posts: 7
Rep Power: 5
mat16 is on a distinguished road
Quote:
Originally Posted by mariduake View Post
Do you have any idea why i have this error. I followed instructions, I even installed OF4.0 instead of 4.1 but I got the same error.
Hi,
I changed the geometry and I have the same error as you.




Can someone help me?

Thank you.
mat16 is offline   Reply With Quote

Old   December 20, 2020, 16:36
Default Compiling error pemfcSinglePhaseModel-4.0
  #35
New Member
 
Jose
Join Date: Dec 2020
Posts: 18
Rep Power: 5
jose.ceballos is on a distinguished road
Quote:
Originally Posted by wyldckat View Post
Greetings to all,

I've split off from the OpenFuelCell thread, the posts that are referring to the package provided here: http://dx.doi.org/10.17632/3gz7pxznzn.1

Apparently that ZIP file was somehow corrupted by someone in the middle... what I mean is that the file "lib/myPatchToPatchInterpolation/mypatchToPatchInterpolation.H" was replaced by the content from "lib/myPatchToPatchInterpolation/myPatchToPatchInterpolation.H", which is why this problem is occurring. It's possible to recover the broken file, by using the original code "patchToPatchInterpolation.H" from OpenFOAM 4.0 as a basis.

After downloading the ZIP file, I've ran the following commands, in order to be able to compile the code with OpenFOAM 4.0, along with the necessary corrections:
Code:
unzip pemfcSinglePhaseModel-4.0.zip
cd pemfcSinglePhaseModel-4.0
cd pemfcSinglePhaseNonIsothermalSolver
find -name "All*" | xargs chmod +x
cp $FOAM_SRC/OpenFOAM/interpolations/patchToPatchInterpolation/patchToPatchInterpolation.H lib/myPatchToPatchInterpolation/mypatchToPatchInterpolation.H
sed -i -e 's=patchToPatchInterpolation=mypatchToPatchInterpolation=g'  -e 's=PatchToPatchInterpolation=myPatchToPatchInterpolation=g' lib/myPatchToPatchInterpolation/mypatchToPatchInterpolation.H
./Allwmake > log.make 2>&1
./Allwmake > log.make2 2>&1
The last 2 commands will create 2 log files: "log.make" and "log.make2", where the second file should have something like this inside:
Code:
...
..../libSinglephasePEMFC.so' is up to date.
...
.../pemfcSinglephaseNonIsothermalSolver' is up to date.

Best regards,
Bruno
I've followed the instructions, and it seems the previous errror is fixed. But I can't obtaint the up date message, instead I got this message:

Code:
+ cd lib
+ ./Allwmake
+ wmake libso
'/home/cicy/OpenFOAM/cicy-4.x/platforms/linux64GccDPInt32Opt/lib/libSinglephasePEMFC.so' is up to date.
+ pwd
/home/cicy/OpenFOAM/cicy-4.x/run/pemfcSinglePhaseModel-4.0/pemfcSinglePhaseNonIsothermalSolver
+ cd applications
+ wmake
g++ -std=c++0x -m64 -Dlinux64 -DWM_ARCH_OPTION=64 -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 -g -I../src/constants -I../src/createFields -I../src/createMesh -I../src/createSpecies -I../src/diffusivity -I../src/electrochemistry -I../src/energyTransport -I../src/mapping -I../src/momentumTransport -I../src/multiSpeciesTransport -I../src/patch -I../src/physicalProperties -I../src/readParameters -I../src/readProperties -I../src/tools/functions -I../src/tools/functionIntegration -I../src/tools/ReynoldsNumber -I../src/tools/RiddersRoot -I../src/tools/varInit -I../lib/lnInclude -I/home/cicy/OpenFOAM/OpenFOAM-4.x/src/finiteVolume/lnInclude -I/home/cicy/OpenFOAM/OpenFOAM-4.x/src/meshTools/lnInclude -I/home/cicy/OpenFOAM/OpenFOAM-4.x/src/thermophysicalModels/specie/lnInclude  -IlnInclude -I. -I/home/cicy/OpenFOAM/OpenFOAM-4.x/src/OpenFOAM/lnInclude -I/home/cicy/OpenFOAM/OpenFOAM-4.x/src/OSspecific/POSIX/lnInclude   -fPIC -c pemfcSinglephaseNonIsothermalSolver.C -o Make/linux64GccDPInt32Opt/pemfcSinglephaseNonIsothermalSolver.o
In file included from pemfcSinglephaseNonIsothermalSolver.C:104:0:
../src/patch/createPatchToPatchInterpolation.H: In function ‘int main(int, char**)’:
../src/patch/createPatchToPatchInterpolation.H:10:33: error: missing template arguments before ‘anodeToCathode’
     myPatchToPatchInterpolation anodeToCathode
                                 ^~~~~~~~~~~~~~
../src/patch/createPatchToPatchInterpolation.H:16:33: error: missing template arguments before ‘cathodeToAnode’
     myPatchToPatchInterpolation cathodeToAnode
                                 ^~~~~~~~~~~~~~
../src/patch/createPatchToPatchInterpolation.H:58:33: error: missing template arguments before ‘fuelAnodeToElectrolyteAnode’
     myPatchToPatchInterpolation fuelAnodeToElectrolyteAnode
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~
../src/patch/createPatchToPatchInterpolation.H:64:33: error: missing template arguments before ‘airCathodeToElectrolyteCathode’
     myPatchToPatchInterpolation airCathodeToElectrolyteCathode
                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
In file included from pemfcSinglephaseNonIsothermalSolver.C:141:0:
../src/electrochemistry/solveElectrochemistry.H:75:18: error: ‘anodeToCathode’ was not declared in this scope
                  anodeToCathode.faceInterpolate
                  ^~~~~~~~~~~~~~
../src/electrochemistry/solveElectrochemistry.H:75:18: note: suggested alternative: ‘anodePatch’
                  anodeToCathode.faceInterpolate
                  ^~~~~~~~~~~~~~
                  anodePatch
In file included from ../src/electrochemistry/ASRfunction.H:8:0,
                 from ../src/electrochemistry/solveElectrochemistry.H:158,
                 from pemfcSinglephaseNonIsothermalSolver.C:141:
../src/electrochemistry/sigmaElectrolyte.H:78:17: error: ‘anodeToCathode’ was not declared in this scope
     wActivity = anodeToCathode.faceInterpolate(wActivityAnode) + wActivityCathode;
                 ^~~~~~~~~~~~~~
../src/electrochemistry/sigmaElectrolyte.H:78:17: note: suggested alternative: ‘pSatCathode’
     wActivity = anodeToCathode.faceInterpolate(wActivityAnode) + wActivityCathode;
                 ^~~~~~~~~~~~~~
                 pSatCathode
In file included from pemfcSinglephaseNonIsothermalSolver.C:141:0:
../src/electrochemistry/solveElectrochemistry.H:251:18: error: ‘cathodeToAnode’ was not declared in this scope
                  cathodeToAnode.faceInterpolate(mflux[s])*(1.0 - YsBC);
                  ^~~~~~~~~~~~~~
../src/electrochemistry/solveElectrochemistry.H:251:18: note: suggested alternative: ‘cathodeZones’
                  cathodeToAnode.faceInterpolate(mflux[s])*(1.0 - YsBC);
                  ^~~~~~~~~~~~~~
                  cathodeZones
../src/electrochemistry/solveElectrochemistry.H:274:11: error: ‘cathodeToAnode’ was not declared in this scope
          -cathodeToAnode.faceInterpolate(mfluxSum)
           ^~~~~~~~~~~~~~
../src/electrochemistry/solveElectrochemistry.H:274:11: note: suggested alternative: ‘cathodeZones’
          -cathodeToAnode.faceInterpolate(mfluxSum)
           ^~~~~~~~~~~~~~
           cathodeZones
/home/cicy/OpenFOAM/OpenFOAM-4.x/wmake/rules/General/transform:8: recipe for target 'Make/linux64GccDPInt32Opt/pemfcSinglephaseNonIsothermalSolver.o' failed
make: *** [Make/linux64GccDPInt32Opt/pemfcSinglephaseNonIsothermalSolver.o] Error 1
I've now installed OF4.X in Ubuntu 18.04 Windows Bash....

Last edited by jose.ceballos; December 21, 2020 at 10:21. Reason: Reinstall OF4
jose.ceballos is offline   Reply With Quote

Old   December 20, 2020, 18:20
Default Request pemfcSinglePhaseModel-4.0.zip
  #36
New Member
 
Jose
Join Date: Dec 2020
Posts: 18
Rep Power: 5
jose.ceballos is on a distinguished road
Someone could upload the pemfcSinglePhaseModel-4.0 fixed to downloand it?
jose.ceballos is offline   Reply With Quote

Old   December 14, 2022, 03:17
Default parallel running
  #37
New Member
 
Pratik
Join Date: May 2020
Location: Oldenburg, Germany
Posts: 14
Rep Power: 6
Pratik_21 is on a distinguished road
Did anyone try running this code in parallel ?
Pratik_21 is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
OpenFOAM Training Jan-Jul 2017, Virtual, London, Houston, Berlin CFDFoundation OpenFOAM Announcements from Other Sources 0 January 4, 2017 06:15
[OpenFOAM.org] OpenFOAM 4.0, bad option -t in zsh rdbisme OpenFOAM Installation 3 December 30, 2016 12:10
UNIGE February 13th-17th - 2107. OpenFOAM advaced training days joegi.geo OpenFOAM Announcements from Other Sources 0 October 1, 2016 19:20
OpenFOAM Training: Programming CFD Course 12-13 and 19-20 April 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 14, 2016 10:19
Suggestion for a new sub-forum at OpenFOAM's Forum wyldckat Site Help, Feedback & Discussions 20 October 28, 2014 09:04


All times are GMT -4. The time now is 15:46.