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

Question about tractionDisplacementFvPatchVectorField BC

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 20, 2017, 08:40
Default Question about tractionDisplacementFvPatchVectorField BC
  #1
New Member
 
Martin
Join Date: Sep 2014
Posts: 9
Blog Entries: 1
Rep Power: 11
Ramwi is on a distinguished road
Dear all,

when writing a custom solver, I found a piece of code in tractionDisplacement boundary condition in solidDisplacementFoam that got me thinking. Specifically,

1. In readMechanicalProperties.H in the solidDisplacementFoam, the user-suplied Young modulus is loaded as rhoE and then it follows,
Code:
Info<< "Normalising E : E/rho\n" << endl;
volScalarField E(rhoE/rho);

Info<< "Calculating Lame's coefficients\n" << endl;

volScalarField mu(E/(2.0*(1.0 + nu)));
volScalarField lambda(nu*E/((1.0 + nu)*(1.0 - 2.0*nu)));
volScalarField threeK(E/(1.0 - 2.0*nu));
Q: So, the volScalarField registered as E is already normalized?

2. In tractionDisplacementFvPatchVectorField.C, there is

Code:
const fvPatchField<scalar>& rhoE =
        patch().lookupPatchField<volScalarField, scalar>("E");
and it follows,

Code:
scalarField E(rhoE/rho);
scalarField mu(E/(2.0*(1.0 + nu)));
scalarField lambda(nu*E/((1.0 + nu)*(1.0 - 2.0*nu)));
scalarField threeK(E/(1.0 - 2.0*nu));
3. So, it seemed to me, that the looked up field rhoE is already normalized and it is "normalized again" by scalarField E(rhoE/rho);.

Q: Did I make any completely obvious mistake in my train of thoughts?

Thanks for anyone kind enough to explain this to me.

Best wishes,
Martin
Ramwi is offline   Reply With Quote

Old   August 18, 2017, 09:49
Default
  #2
New Member
 
Martin
Join Date: Sep 2014
Posts: 9
Blog Entries: 1
Rep Power: 11
Ramwi is on a distinguished road
OK, I got lost in the different names of variables and registered objects. Henry Weller was kind enough to explain it to me. The problem for me was the fact that the variable rhoE in the code is registered as E and the variable E as "(rhoE/rho)".
Ramwi is offline   Reply With Quote

Reply

Tags
soliddisplacementfoam, tractiondisplacement


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
Question about symmetry in Autodesk Cfd 2016 ecto Autodesk Simulation CFD 0 October 20, 2015 04:16
small question about the functionalities of topological changes in OpenFoam ngj OpenFOAM Running, Solving & CFD 2 February 28, 2013 10:02
Question Re Engineering Data Source imnull ANSYS 0 March 5, 2012 13:51
internal field question - PitzDaily Case atareen64 OpenFOAM Running, Solving & CFD 2 January 26, 2011 15:26
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37


All times are GMT -4. The time now is 17:14.