Coupling interFoam and DPMFoam
Hi,
I am trying to incorporate the interFoam and DPMFoam to simulate the air-water-particles systems. I want to create the viscosity field of continuous phases using the mixture law. volScalarField muc ( IOobject ( "muc", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE ), alpha1*rho1*"nu1" + alpha2*rho2*"nu2", alpha1.boundaryField().types() ); but I am in trouble with reading "nu" from "transportProperties" file. Anyone can help me? if anyone has similar codes for the Multiphase-DPM coupled problem and share here, it will be very helpful. Thank you very much! Linmin |
Quote:
From your code, you can just use: Code:
twoPhaseProperties.mu(); :) |
Quote:
|
Quote:
Code:
Foam::tmp<Foam::volScalarField> :D |
Quote:
volScalarField muc ( IOobject ( "muc", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), twoPhaseProperties.mu(), alpha1.boundaryField().types() ); But it shows the error: " ‘twoPhaseProperties’ was not declared" Very sorry to interrupt again! And you documents are very helpful! Thank you very much ! |
hi
i will give u a more explaination after i finish my dinner. :) |
Quote:
|
Quote:
incompressibleTwoPhaseMixture twoPhaseProperties(U, phi); and used the code: twoPhaseProperties.mu(), to read the viscosity of mixture and successfully complied the code. Thank you very much again for your help and your web is very helpful. Linmin |
All times are GMT -4. The time now is 09:35. |