CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   "different mesh for fields" error (https://www.cfd-online.com/Forums/openfoam-programming-development/145815-different-mesh-fields-error.html)

sabago December 12, 2014 14:48

"different mesh for fields" error
 
Dear all!
I am new to OpenFOAM and I am trying to calculate a variable called vdrop = prefb*Hum+prefc (in vdrop.H) where prefb and prefc are constants defined in the constant folder and Hum is the concentration of the Humidity defined in diffusion. H as fvScalarMatrix HumEqn
(
(fvm::ddt(Hum)) == (fvm::laplacian(DH2Oeff, Hum))
);
HumEqn.solve();
where DH2Oeff is the effective diffusivity of water. The diffusion.H file runs fine but I get the following error when I turn on the vdrop.H. Any help will be much appreciated.

SANDRA

*Error starts here*
FOAM FATAL ERROR:
different mesh for fields vdrop and ((prefb*Hum)+prefc) during operatrion =

From function checkField(gf1, gf2, op)
in file /home/sandra/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/GeometricField.C at line 1122.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2
at ??:?
#3
at ??:?
#4 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#5
at ??:?
Aborted (core dumped)

sabago December 20, 2014 04:22

Problem solved
 
It was a strange mistake. PM if you run into a similar issue while mapping fields from patch to patch and maybe I can help.

Best,
Sandra

Anamika November 22, 2021 04:48

Foam Fatal Error: different mesh for fields and thermophysicalProperties.air
 
Quote:

Originally Posted by sabago (Post 523701)
Dear all!
I am new to OpenFOAM and I am trying to calculate a variable called vdrop = prefb*Hum+prefc (in vdrop.H) where prefb and prefc are constants defined in the constant folder and Hum is the concentration of the Humidity defined in diffusion. H as fvScalarMatrix HumEqn
(
(fvm::ddt(Hum)) == (fvm::laplacian(DH2Oeff, Hum))
);
HumEqn.solve();
where DH2Oeff is the effective diffusivity of water. The diffusion.H file runs fine but I get the following error when I turn on the vdrop.H. Any help will be much appreciated.

SANDRA

*Error starts here*
FOAM FATAL ERROR:
different mesh for fields vdrop and ((prefb*Hum)+prefc) during operatrion =

From function checkField(gf1, gf2, op)
in file /home/sandra/OpenFOAM/OpenFOAM-2.3.0/src/OpenFOAM/lnInclude/GeometricField.C at line 1122.

FOAM aborting

#0 Foam::error::printStack(Foam::Ostream&) at ??:?
#1 Foam::error::abort() at ??:?
#2
at ??:?
#3
at ??:?
#4 __libc_start_main in "/lib/i386-linux-gnu/libc.so.6"
#5
at ??:?
Aborted (core dumped)

Hello Sabago,

I am facing a similar kind of error as "different mesh for fields and thermophysicalProperties.air during operatrion +=".

I request your suggestions in this regards. Thank you very much in advance.

Best Regards,
Anamika

anuargimenez May 12, 2022 14:24

Hi everyone,
I am facing a similar kind of error.
"different mesh for fields and thermophysicalProperties during operatrion +=".
Any advice?

Best,
Anuar

openfoam_aero June 6, 2022 05:27

Quote:

Originally Posted by sabago (Post 524753)
It was a strange mistake. PM if you run into a similar issue while mapping fields from patch to patch and maybe I can help.

Best,
Sandra

Hi I have messaged you. Please check inbox.


All times are GMT -4. The time now is 22:59.