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

convection term alpha1 interDyMFoam

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 10, 2014, 15:57
Default convection term alpha1 interDyMFoam
  #1
New Member
 
Join Date: Jun 2014
Posts: 7
Rep Power: 8
Elisabeth_ofoam is on a distinguished road
Dear OpenFoam users,

I am a new OpenFoam user and I need your help.
I try to remove the convective term on the air side for the floatingObject case, like in the example here:
http://www.imac.unavarra.es/Cursos/A...AMWorkshop.pdf
I cannot simply add alpha1 like in the example, because I use openfoam 2.3.0 and the files for interFoam and interDyMFoam look differently.

old version 2.1.1
surfaceScalarField muEff
(
"muEff",
twoPhaseProperties.muf()
+ fvc::interpolate(rho*turbulence->nut())
);

fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
- fvm::laplacian(muEff, U)
- (fvc::grad(U) & fvc::grad(muEff))
//- fvc::div(muEff*(fvc::interpolate(dev(fvc::grad(U)) ) & mesh.Sf()))
);


UEqn.relax();

if (pimple.momentumPredictor())
{
solve
(
UEqn
==
fvc::reconstruct
(
(
fvc::interpolate(interface.sigmaK())*fvc::snGrad(a lpha1)
- ghf*fvc::snGrad(rho)
- fvc::snGrad(p_rgh)
) * mesh.magSf()
)
);
}

new version 2.3.0

fvVectorMatrix UEqn
(
fvm::ddt(rho, U)
+ fvm::div(rhoPhi, U)
+ turbulence->divDevRhoReff(rho, U)
);


UEqn.relax();

if (pimple.momentumPredictor())
{
solve
(
UEqn
==
fvc::reconstruct
(
(
fvc::interpolate(interface.sigmaK())*fvc::snGrad(a lpha1)
- ghf*fvc::snGrad(rho)
- fvc::snGrad(p_rgh)
) * mesh.magSf()
)
);
}

How can I solve this problem?
Thank you in advance for your help!
Elisabeth
Attached Files
File Type: h UEqn.H (777 Bytes, 1 views)

Last edited by Elisabeth_ofoam; June 11, 2014 at 09:31.
Elisabeth_ofoam is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Formulation in compressibleInterFoam scttmllr OpenFOAM Running, Solving & CFD 66 April 29, 2020 04:26
Negative alpha1 using interDyMFoam jrrygg OpenFOAM Running, Solving & CFD 14 March 2, 2013 10:26
ATTENTION! Reliability problems in CFX 5.7 Joseph CFX 14 April 20, 2010 15:45
[Q] Convection term treatment in UDS Ryan, Lee FLUENT 4 October 18, 2004 10:20
Convection Term Discretization Maciej Matyka Main CFD Forum 3 October 7, 2004 04:32


All times are GMT -4. The time now is 02:30.