|
[Sponsors] |
June 26, 2012, 22:30 |
coulpe FAM and FVM
|
#1 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
Hello everyone
I meet a problem of coupling the FAM and FVM.The following is my code: Code:
label patchID = mesh.boundaryMesh().findPatchID("UB"); forAll (ephis1, faceI) { ephis1[faceI] = ephi.boundaryField()[patchID][faceI]; } faScalarMatrix CsEqn ( fam::laplacian(Dsigw, ephis) ==( Dsig*fac::grad(ephis1)&aMesh.faceAreaNormals()) ); CsEqn.solve(); vsm.mapToVolume(ephis, ephi.boundaryField()); regards! zakir |
|
June 27, 2012, 22:37 |
|
#2 |
Member
zakir
Join Date: Nov 2011
Posts: 44
Rep Power: 15 |
Hi gschaider
Just as you mentioned in http://www.cfd-online.com/Forums/ope...uld-i-use.html Code:
What you want is a FAM to FVM-coupling right. Something like Code: volSurfaceMapping mapper(famField.mesh()); mapper.mapToVolume(famField, fvmField.boundaryField()); in your code copies the internal field of the famField to the appropriate patches of the fvmField (make sure the patches are of appropriate type ... fixedValue for instance) ---------------------------------------------- .... boundary { UB { type fixedValue; value 0; } .... } ----------------------------------------- Then I also wrote Code:
vsm.mapToVolume(ephis, ephi.boundaryField()); Will the boundary condition value of ephi at UB update every time step? regards! zakir Last edited by zakir hussain; June 29, 2012 at 02:10. |
|
Tags |
fam |
|
|