CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Running, Solving & CFD

Can I use fvOptions to couple a solid region and a fluid region?

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   July 24, 2014, 13:36
Default Can I use fvOptions to couple a solid region and a fluid region?
  #1
New Member
 
CZ
Join Date: Jun 2013
Posts: 9
Rep Power: 4
titanchao is on a distinguished road
Can I use fvOptions to couple a solid region and a fluid region?


The solid region represents a porous medium. The reason I want to do the coupling is because I need to solve both the thermal energy transport in the fluid and the heat conduction in the porous medium. I intend to use the chtMultiRegionSimpleFoam solver.



(1) Is fvOptions allowed to be used to couple two regions that have different governing equations?


(2) I modified the settings based on the heat exchanger case in the tutorial. Because I want a heat conduction equation to be solved for my porous region (vs. another flow region in the original tutorial case), I modified the fvSchems file to one that's supposed to solve a Laplacian equation only (see the following). Is this correct?
FoamFile
{
version 2.0;
format ascii;
class dictionary;
object fvSchemes;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

ddtSchemes
{
default steadyState;//Euler;
}

gradSchemes
{
default Gauss linear;
grad(T) Gauss linear;
}

divSchemes
{
default none;
}

laplacianSchemes
{
default none;
laplacian(K,T) Gauss linear corrected;
}

interpolationSchemes
{
default linear;
}

snGradSchemes
{
default corrected;
}

fluxRequired
{
default no;
T ;
}

// ************************************************** *********************** //
(3) Why does it keep asking for a pressure initial condition for the porous media (solid) region? If it only solves a heat conduction equation, why is pressure field needed?
chao@ChaoCFDLinux:~/OpenFOAM/chao-2.3.0/run/oneChannePorousMediaHT$ chtMultiRegionSimpleFoam
/*---------------------------------------------------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.3.0 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
Build : 2.3.0-f5222ca19ce6
Exec : chtMultiRegionSimpleFoam
Date : Jul 24 2014
Time : 09:52:16
Host : "ChaoCFDLinux"
PID : 13319
Case : /home/chao/OpenFOAM/chao-2.3.0/run/oneChannePorousMediaHT
nProcs : 1
sigFpe : Enabling floating point exception trapping (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster
allowSystemOperations : Disallowing user-supplied system call operations

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

Create fluid mesh for region domainFluid for time = 0

Create solid mesh for region exRegionSolid for time = 0

*** Reading fluid mesh thermophysical properties for region domainFluid

Adding to thermoFluid

Selecting thermodynamics package
{
type heRhoThermo;
mixture pureMixture;
transport const;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}

Adding to rhoFluid

Adding to UFluid

Adding to phiFluid

Adding to gFluid

Adding to turbulence

Selecting turbulence model type laminar
Adding to ghFluid

Adding to ghfFluid

Selecting radiationModel none
Adding fvOptions

Creating finite volume options from fvOptions

Selecting finite volume options model type constantHeatTransfer
Source: fluidTosolid
- applying source for all time
- selecting inter region mapping
Creating mesh-to-mesh addressing for domainFluid and exRegionSolid regions using cellVolumeWeight
Overlap volume: 1.10097e-05
Selecting finite volume options model type interRegionExplicitPorositySource
Source: porosityBlockage
- applying source for all time
- selecting inter region mapping
Creating mesh-to-mesh addressing for domainFluid and exRegionSolid regions using cellVolumeWeight
Overlap volume: 1.10097e-05
*** Reading solid mesh thermophysical properties for region exRegionSolid

Adding to thermos

Selecting thermodynamics package
{
type heSolidThermo;
mixture pureMixture;
transport constIso;
thermo hConst;
equationOfState rhoConst;
specie specie;
energy sensibleEnthalpy;
}



--> FOAM FATAL IO ERROR:
cannot find file

file: /home/chao/OpenFOAM/chao-2.3.0/run/oneChannePorousMediaHT/0/exRegionSolid/p at line 0.

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

FOAM exiting

(4) It appears the fvOptions has to be defined respectively for both regions, the fluid and the porous region (solid). Does it matter which one is the master region?

(5) Anyone has solved similar problems? And other suggestions to solve the problem?

Thank you so much!
titanchao is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 28 May 16, 2015 11:33
Maximum number of iterations exceeded chtmultiregionsimpleFoam Moncef OpenFOAM Running, Solving & CFD 5 May 19, 2014 23:50
Unstabil Simulation with chtMultiRegionFoam mbay101 OpenFOAM Running, Solving & CFD 13 December 28, 2013 14:12
Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Other Meshers: ICEM, Star, Ansys, Pointwise, GridPro, Ansa, ... 2 July 15, 2005 04:15
Import gmsh msh to Foam adorean Open Source Meshers: Gmsh, Netgen, CGNS, ... 24 April 27, 2005 08:19


All times are GMT -4. The time now is 04:32.