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

Defining solid zone in interFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 6, 2015, 02:36
Exclamation Defining solid zone in interFoam
  #1
New Member
 
junewookee
Join Date: Feb 2014
Posts: 1
Rep Power: 0
junewookee is on a distinguished road
Hello,

I tried to simulate the water droplet impinging onto flat surface using interFoam solver.

I countered some problems.

I know that interFoam deals with fluid flow only. So defining solid zone is hard for me.

I modified UEqn.H shown below.

SL(solid layer) is defined as volScalarField in createFields.H.
If SL is 1, then cell is considered as solid cell. So there's no velocity values in solid cell.
If SL is 0, then the cell is considered as fluid cell. So momentum equation will be calculated.

@ UEqn.H

fvVectorMatrix UEqn
(
fvm::ddt(rho, U) * pos (0.01 - mag(fvc::interpolate(SL)))
+ fvm::div(rhoPhi, U) * pos (0.01 - mag(fvc::interpolate(SL)))
- fvm::laplacian(muEff, U) * pos (0.01 - mag(fvc::interpolate(SL)))
- (fvc::grad(U) & fvc::grad(muEff)) * pos (0.01 - mag(fvc::interpolate(SL)))
);

UEqn.relax();

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

When i compile the modified solver, the error message came out like this.
'no match for 'operator*' ..... '
at the first transient term of momentum equation (bold and italic fonts)


I want to know why this is wrong.

Thank you.

Sincerely.
junewookee is offline   Reply With Quote

Reply

Tags
drop impact, interfoam, solid zone


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
Error in solution using "Grid Interface" agustinvo FLUENT 4 January 20, 2015 13:03
[GAMBIT] periodic faces not matching Aadhavan ANSYS Meshing & Geometry 6 August 31, 2013 12:25
Defining Rotor Zone NTM FLUENT 1 September 4, 2008 03:03
UDS in solid zone shuqin FLUENT 0 May 6, 2006 05:56
Error to re-open fluent case file J.Gimbun FLUENT 0 April 27, 2006 09:42


All times are GMT -4. The time now is 05:34.