|
[Sponsors] |
Question about tractionDisplacementFvPatchVectorField BC |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 20, 2017, 09:40 |
Question about tractionDisplacementFvPatchVectorField BC
|
#1 |
New Member
|
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)); 2. In tractionDisplacementFvPatchVectorField.C, there is Code:
const fvPatchField<scalar>& rhoE = patch().lookupPatchField<volScalarField, scalar>("E"); 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)); 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 |
|
August 18, 2017, 10:49 |
|
#2 |
New Member
|
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)".
|
|
Tags |
soliddisplacementfoam, tractiondisplacement |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Question about symmetry in Autodesk Cfd 2016 | ecto | Autodesk Simulation CFD | 0 | October 20, 2015 05:16 |
small question about the functionalities of topological changes in OpenFoam | ngj | OpenFOAM Running, Solving & CFD | 2 | February 28, 2013 11:02 |
Question Re Engineering Data Source | imnull | ANSYS | 0 | March 5, 2012 14:51 |
internal field question - PitzDaily Case | atareen64 | OpenFOAM Running, Solving & CFD | 2 | January 26, 2011 16:26 |
Poisson Solver question | Suresh | Main CFD Forum | 3 | August 12, 2005 05:37 |