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

[Other] motionDirectional diffusivity

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 31, 2014, 10:40
Default motionDirectional diffusivity
  #1
New Member
 
Laurien Vandewalle
Join Date: Jun 2013
Location: Ghent, Belgium
Posts: 29
Rep Power: 13
lavdwall is on a distinguished road
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();
    }
}
Does anyone understand what happens exactly during the calculation of the faceDiffusivity? I read that the first two components of the diffusivity vector, i.e. and diffusivityVector_.x() and diffusivityVector_.y(), are the mean orthogonality and skewness but I cannot find any article about this...

Can anyone give me the theoretical background behind the calculation above?

Thank you very much!

Kind regards,
Laurien
lavdwall is offline   Reply With Quote

Old   April 12, 2014, 01:58
Default
  #2
New Member
 
Laurien Vandewalle
Join Date: Jun 2013
Location: Ghent, Belgium
Posts: 29
Rep Power: 13
lavdwall is on a distinguished road
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...
lavdwall is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 03:10.