CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Running, Solving & CFD (https://www.cfd-online.com/Forums/openfoam-solving/)
-   -   COUPLED REGIONS (https://www.cfd-online.com/Forums/openfoam-solving/57847-coupled-regions.html)

giordy January 3, 2009 07:09

Dear All. I'm trying to use
 
Dear All.

I'm trying to use the coupled solver downloaded here:

http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/

I successfully built the source ThirdParty.General_2008-12-11.tgz + OpenFOAM-1.5-dev.General_2008-12-11.tgz

When i run the conjugateHeatFoam tutorial i get the following error:

Unknown patchTypefield type regionCouple

Valid patchField types are :

11
(
symmetryPlane
cyclicGgi
ggi
empty
fixedValue
cyclic
regionCoupling
processor
calculated
sliced
wedge
)


From function fvsPatchField<type>::New(const word&, const fvPatch&, const DimensionedField<type,>)
in file /home/simulation15/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/newFvsPa tchField.C at line 59.

FOAM exiting



Does someone know how to fix this error? I didn't find a solution in the forum until now.
thanks in advance.

Stefano

canfield January 3, 2009 07:37

hi Stefano. its just a guess,
 
hi Stefano. its just a guess, but in the list of valid patch types is a "regionCoupling". have you tried editing the patch type to this (instead of patch type "regionCouple")

also: i have been trying to compile 1.5-dev and thirdparty-12-11 for weeks and i dont know what i am doing wrong. could you tell me how you did it

peter

giordy January 3, 2009 08:09

Hello Peter, The regionCoup
 
Hello Peter,

The regionCouple is only in the boundary file in the polyMesh directory as explained in previous posts in this forum. If i select regionCopuling there the following error happens:

Attempt to cast type genericPatch to type lduInterface

From function refCast<to>(From&)
in file /home/simulation15/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/typeInfo.H at line 106.

FOAM aborting

Aborted



Which are the errors you got during the compiling? It is better you show me the first errors you got in the compiling operation. I think the next errors could be caused by some errors at the start.

I'm new user but maybe i could help you.

Stefano

canfield January 3, 2009 11:10

im not quite sure what the pro
 
im not quite sure what the problem is. here is what i do:
1) unpack openfoam-1.5-dev, openfoam-1.5-linuxGccDPOpt, thirdparty.general, thirdparty.linuxGcc
2) then i copy the folders in openfoam-1.5 folder into openfoam-1.5-dev but i do not replace any of the 1.5-dev files.
3) i go into the 1.5-dev directory and "./Allwmake"
4)after a long time i try icofoam but it doesnt even recognize blockmesh

i am not even sure if merging the directories is the right idea.

peter
peter

giordy January 3, 2009 12:40

Here what i did (I'm using ubu
 
Here what i did (I'm using ubuntu 8.04):

sudo apt-get install gcc lsh-client lsh-server
sudo apt-get install libqt4-core libqt4-gui libqt4-sql

-After i created a new user:

sudo adduser simualtion15
ssh -X simulation15@localhost
mkdir OpenFOAM

-After i log-out from the administrator and connected as simulation15. I downloaded the packages from http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/. Only ThirdParty.General_2008-12-11.tgz and OpenFOAM-1.5-dev.General_2008-12-11.tgz.

- then i unack by:

tar xzf ThirdParty.General_2008-12-11.tgz
tar xzf OpenFOAM-1.5-dev.General_2008-12-11.tgz

- and i connected the packages by adding the following line to the /.bashrc file in the directory simulation15:

. $HOME/OpenFOAM/OpenFOAM-1.5-dev/etc/bashrc

Finally i went into the 1.5-dev directory and "./Allwmake"
The compiling takes some hours.

At this moment i'm compiling the OpenFOAM-1.5-dev_2008-12-31.tgz. Maybe it will solve my problem. Hope it is useful. Let me know if not.

Stefano

hjasak January 4, 2009 08:26

Heya, regionCoupling and re
 
Heya,

regionCoupling and regionCouple: in fact, this is my problem: a BUG (sorry for using dirty words).

There has been some mess in the newFvsPatchField, which insists that if a patch is coupled, the field name and patch name must be the same.

There's a lot of other mess in the same file and I am cleaning it up now. Will post again when the code works as it should. Apologies for inconvenience, I have missed this one in the merge.

Hrv

giordy January 4, 2009 13:46

No problem. Thanks for let me
 
No problem. Thanks for let me know.
Let me know when you solved the problems.

Stefano

naish January 12, 2009 11:17

Hi Stefano You explained how
 
Hi Stefano
You explained how you compiled 1.5-dev. is it working that way ? please let me know
I compiled it a few weeks ago, but now I tried it again and it fails.

Naish

giordy January 12, 2009 18:01

Hello. Yes, it works. I tried
 
Hello.
Yes, it works. I tried again for new packages in http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/
and it works.
I forgot to tell to install "flex" before compiling....maybe that it's the problem.

Which error you got?

Stefano

naish January 15, 2009 10:32

Thanks The missing flex was it
 
Thanks The missing flex was it, now it the compiling was successful

brent_craven March 5, 2009 16:55

Hi all, I am in the process
 
Hi all,

I am in the process of converting the conjugateHeatFoam solver in 1.5-dev to a multiphase (e.g., air/water) conjugate mass transfer solver. Basically, I have an air region and a water region and I want to solve for species transport in and between the two phases. This has been pretty straight forward so far, except for the boundary condition at the air-liquid interface. Unlike thermal energy transport, where the temperature is continuous across an interface, there is a discontinuity in concentration at an air-liquid interface. The discontinuity is related to the "solubility" of a species in the liquid and is described by:

Ci_liquid = Ci_air / partitionCoefficient

where Ci_liquid is the species concentration in the liquid at the interface, Ci_air is the air-phase species concentration at the interface, and partitionCoefficient is a constant.


So, conceptually at the boundary I simply need to implement the above equation in place of the continuous BC. Any suggestions on where/how I should do this? I've been going through the regionCouple boundary condition and it's obvious how to implement this.


Thanks.

-Brent

santos July 16, 2009 06:15

Hi Brent,

Did you succeed in creating a conjugate mass transfer solver? It would be good to hear from your experience!

Regards,
Jose Santos

awacs August 25, 2009 05:57

Hi Brent,
I am trying to create a new solver based on conjugateHeatFoam called conjugateInterHeatFoam: a transient solver for incompressible, laminar, two phase flow of non-isothermal, non-Newtonian fluids with conjugate heat transfer. I can compile through the new solver with wmake. When running the solver with a 2D test, the calculation stopped with a "segmentation fault" error.

Has your multiphase conjugate mass transfer solver finished? How do you treat with the boundary condition at the multi-phase interface? Would you mind giving me some hints:).Thanks in advance.

Kind Regards
Jitao

mm.abdollahzadeh June 10, 2013 11:12

Quote:

Originally Posted by giordy (Post 204628)
Dear All.

I'm trying to use the coupled solver downloaded here:

http://powerlab.fsb.hr/ped/kturbo/OpenFOAM/release/

I successfully built the source ThirdParty.General_2008-12-11.tgz + OpenFOAM-1.5-dev.General_2008-12-11.tgz

When i run the conjugateHeatFoam tutorial i get the following error:

Unknown patchTypefield type regionCouple

Valid patchField types are :

11
(
symmetryPlane
cyclicGgi
ggi
empty
fixedValue
cyclic
regionCoupling
processor
calculated
sliced
wedge
)


From function fvsPatchField<type>::New(const word&, const fvPatch&, const DimensionedField<type,>)
in file /home/simulation15/OpenFOAM/OpenFOAM-1.5-dev/src/finiteVolume/lnInclude/newFvsPa tchField.C at line 59.

FOAM exiting



Does someone know how to fix this error? I didn't find a solution in the forum until now.
thanks in advance.

Stefano


Dear stephano,

I have the same problem.:(

did solved it?

Best

mm.abdollahzadeh June 11, 2013 08:48

Dear Hrv

Could u share the fixed file?

Best
Mahdi

Quote:

Originally Posted by hjasak (Post 204633)
Heya,

regionCoupling and regionCouple: in fact, this is my problem: a BUG (sorry for using dirty words).

There has been some mess in the newFvsPatchField, which insists that if a patch is coupled, the field name and patch name must be the same.

There's a lot of other mess in the same file and I am cleaning it up now. Will post again when the code works as it should. Apologies for inconvenience, I have missed this one in the merge.

Hrv



All times are GMT -4. The time now is 23:01.