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

Understanding about updateCoeffs() in solidDisplacementFoam

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By wyldckat
  • 2 Post By wyldckat

 
 
LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
Old   December 30, 2014, 06:11
Default Understanding about updateCoeffs() in solidDisplacementFoam
  #1
Member
 
Anil Kunwar
Join Date: Jun 2013
Posts: 64
Rep Power: 11
Annier is an unknown quantity at this point
Hi,
In solidDisplacementFoam solver,at tractionDisplacementFvPatchVectorField.C, there is a following piece of code for updateCoeffs().
Code:
void tractionDisplacementFvPatchVectorField::updateCoeffs()
{
...
gradient() =
    (
        (traction_ - pressure_*n)/rho
      + twoMuLambda*fvPatchField<vector>::snGrad() - (n & sigmaD)
    )/twoMuLambda;
...
fixedGradientFvPatchVectorField::updateCoeffs();
}
Whereas, in stressedFoam solver, at tractionDisplacementFvPatchVectorField.C;the corresponding code is:
Code:
void tractionDisplacementFvPatchVectorField::updateCoeffs()
{
...
gradient() =
    (
        (traction_ - pressure_*n)/rho.value()
      - (n & (mu.value()*gradU.T() - (mu + lambda).value()*gradU))
      - n*tr(gradU)*lambda.value()
    )/(2.0*mu + lambda).value();

fixedGradientFvPatchVectorField::updateCoeffs();
}
1. What does the value() assign to mu in mu.value()?
2. Similarly, the meaning of gradU.T().
3. Do they convert a scalar to a matrix of given size?
4. Is there a layman way to understand the process of coefficients being updated?


Yours
Anil Kunwar
Annier is offline   Reply With Quote

 


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
TimeVaryingMappedFixedValue irishdave OpenFOAM Running, Solving & CFD 32 June 16, 2021 06:55
Purposes of updateCoeffs, initEvaluate and evaluate....? philippose OpenFOAM Programming & Development 9 September 29, 2020 05:09
updateCoeffs() and evaluate() lixx OpenFOAM Programming & Development 11 August 12, 2020 15:41
Coupling of OpenFOAM solvers Annier OpenFOAM Running, Solving & CFD 1 January 5, 2015 10:50
TimeVaryingMappedFixedValue for Direct Numerical Simulation inlet johndeas OpenFOAM 5 May 21, 2014 07:11


All times are GMT -4. The time now is 02:06.