|
[Sponsors] |
March 31, 2014, 10:40 |
motionDirectional diffusivity
|
#1 |
New Member
Laurien Vandewalle
Join Date: Jun 2013
Location: Ghent, Belgium
Posts: 29
Rep Power: 13 |
Hi everyone,
I am using the velocityLaplacianFvMotionSolver with motionDirectional diffusivity to move a cylindrical pipe wall (decreasing diameter) in a post-Processing utility. The results are quite good for a small displacement of the pipe wall, but for larger displacements non-orthogonal and wrongly oriented faces appear. I therefore looked into the source code of motionDirectional diffusivity and I found this: Code:
void Foam::motionDirectionalDiffusivity::correct() { static bool first = true; if (!first) { const volVectorField& cellMotionU = mesh().lookupObject<volVectorField>("cellMotionU"); volVectorField D ( IOobject ( "D", mesh().time().timeName(), mesh() ), diffusivityVector_.y()*vector::one + (diffusivityVector_.x() - diffusivityVector_.y())*cellMotionU /(mag(cellMotionU) + dimensionedScalar("small", dimVelocity, SMALL)), zeroGradientFvPatchVectorField::typeName ); D.correctBoundaryConditions(); const surfaceVectorField n(mesh().Sf()/mesh().magSf()); faceDiffusivity_ == (n & cmptMultiply(fvc::interpolate(D), n)); } else { first = false; const velocityMotionSolver& mSolver = mesh().lookupObject<velocityMotionSolver>("dynamicMeshDict"); const_cast<velocityMotionSolver&>(mSolver).solve(); correct(); } } Can anyone give me the theoretical background behind the calculation above? Thank you very much! Kind regards, Laurien |
|
April 12, 2014, 01:58 |
|
#2 |
New Member
Laurien Vandewalle
Join Date: Jun 2013
Location: Ghent, Belgium
Posts: 29
Rep Power: 13 |
Anyone?
I'm just looking for an article or document about this topic. Maybe the person who wrote this piece of code can help me... |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
uds diffusivity | Lee 小亢 | Fluent UDF and Scheme Programming | 4 | March 7, 2018 07:28 |
Disable Mass Diffusivity and Enable UDS Diffusivity | antoinel | FLUENT | 0 | July 26, 2017 18:27 |
Kinematic Diffusivity - Problem with additional variable | clau90 | CFX | 3 | May 14, 2014 10:54 |
PEM modeling UDS diffusivity in mixture | gemini | FLUENT | 6 | August 7, 2012 08:37 |
What is UDS diffusivity of a self-defined material? | aleisia | FLUENT | 0 | March 5, 2011 23:08 |