|
[Sponsors] |
Implementation of orthotropic thermal effects in tractionBoundaryGradient class |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
November 13, 2014, 14:59 |
Implementation of orthotropic thermal effects in tractionBoundaryGradient class
|
#1 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Hello,
I've modified the elasticOrthoSolidFoam solver such that it accounts for thermal residual stresses because I got oscillations in the stress and epsilon fields which seems to be introduced by the BC. The thermal contribution has to be incorporated into the tractionBoundaryGradient class in order to get the BC's right but that hasn't been done for orthotropic boundaries so far. My implementation in tractionBoundaryGradient.C (foam ext 3.1) looks like this: Code:
// Thermal effects if ( patch.boundaryMesh().mesh().objectRegistry:: foundObject<thermalModel>("thermalProperties") ) { const thermalModel& thermo = patch.boundaryMesh().mesh().objectRegistry:: lookupObject<thermalModel>("thermalProperties"); const fvPatchSymmTensor4thOrderField& C = patch.lookupPatchField<volSymmTensor4thOrderField, symmTensor4thOrder> ( "rheologyLawStoredC" ); const fvPatchSymmTensorField& alphaOrtho = patch.lookupPatchField<volSymmTensorField, symmTensor> ( "alphaOrtho" ); if (incremental) { const fvPatchScalarField& DT = patch.lookupPatchField<volScalarField, scalar>("DT"); gradient += n & (C && (alphaOrtho*DT)); } else { const fvPatchScalarField& T = patch.lookupPatchField<volScalarField, scalar>("T"); const scalarField T0 = thermo.T0()().boundaryField()[patch.index()]; gradient += n & (C && (alphaOrtho*(T - T0))); } } I'm running a simulation right now to compare the results but was wondering if someone else has already tried this and can give me some feedback wether this implementation is correct or not. EDIT: Looks like the stress oscillations are gone =) However the cpu time increased by about 11%... Thanks, Alex |
|
November 16, 2014, 07:24 |
|
#2 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
Hi Alex,
As far as I can see, the way you are doing it should be correct. Is it possible for you to share your solver and a simple case? And the tractionBoundaryGradient.C file? Philip |
|
November 17, 2014, 07:34 |
|
#3 |
Member
A. Bernath
Join Date: Jun 2011
Location: Karlsruhe, Germany
Posts: 39
Rep Power: 15 |
Hi Philip,
that would be possible but I have to clean things up before that... Thanks for checking the code. Alex |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Enhanced Wall Treatment - Thermal Effects | Brian Tang | FLUENT | 1 | November 6, 2015 00:59 |
IAPWS water properties + orthotropic thermal conductivity | Chander | CFX | 1 | February 29, 2012 18:26 |
Combining Cavitation and Thermal Effects? | akash_max | CFX | 4 | January 19, 2012 15:09 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
Info: Short Course On Thermal Design of Electronic Equipment | Arnold Free | Main CFD Forum | 0 | August 10, 1999 11:18 |