|
[Sponsors] |
Thermophysical transport model to include shear rate |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 29, 2016, 14:19 |
Thermophysical transport model to include shear rate
|
#1 |
New Member
Janez Turk
Join Date: Jul 2010
Posts: 6
Rep Power: 16 |
Greetings!
I'm currently working on new thermophysical model with its own equation of state and transport properties. I get stuck when I try to implement shear rate dependence of viscosity. Is this feasible? Where would you calculate shear rate and pass it to viscosity function? Goal is to capture shear thinning behaviour of polymers with multiphase flow. This is where ("/src/thermophysicalModels/specie/transport/crossWLF/crossWLFTransportI.H") viscosity is evaluated. It takes p and T. Code:
template<class Thermo> inline Foam::scalar Foam::crossWLFTransport<Thermo>::mu ( const scalar p, const scalar T ) const { return D1_*::exp(-(A1_*(T-D2_))/(A2_+T-D2_)); } Code:
template<class BasicPsiThermo, class MixtureType> void Foam::heRhoThermo<BasicPsiThermo, MixtureType>::calculate() { const scalarField& hCells = this->he().internalField(); const scalarField& pCells = this->p_.internalField(); //const vectorField& UCells = this->U_.internalField(); ofcourse it doesn't work like this scalarField& TCells = this->T_.internalField(); scalarField& psiCells = this->psi_.internalField(); scalarField& rhoCells = this->rho_.internalField(); scalarField& muCells = this->mu_.internalField(); scalarField& alphaCells = this->alpha_.internalField(); forAll(TCells, celli) { const typename MixtureType::thermoType& mixture_ = this->cellMixture(celli); TCells[celli] = mixture_.THE ( hCells[celli], pCells[celli], TCells[celli] ); psiCells[celli] = mixture_.psi(pCells[celli], TCells[celli]); rhoCells[celli] = mixture_.rho(pCells[celli], TCells[celli]); muCells[celli] = mixture_.mu(pCells[celli], TCells[celli]); // is this the line where mu is called? alphaCells[celli] = mixture_.alphah(pCells[celli], TCells[celli]); } |
|
March 6, 2018, 04:44 |
|
#2 |
Member
Alberto
Join Date: Sep 2013
Posts: 37
Rep Power: 13 |
Hi Janez,
Were you able to implement this modification? Thanks |
|
March 18, 2018, 10:41 |
|
#3 |
New Member
Janez Turk
Join Date: Jul 2010
Posts: 6
Rep Power: 16 |
Hello sir,
yes we managed, source code can be downloaded: https://github.com/krebeljk/openInjMoldSim Regards, Janez Turk |
|
March 24, 2018, 12:30 |
|
#4 |
Senior Member
Derek Mitchell
Join Date: Mar 2014
Location: UK, Reading
Posts: 172
Rep Power: 13 |
Is there a way to create a new thermomodel without having to modify the solver to reference it? I'm trying to create a modified version of heSolidThermo but cant see a way round modifying the solvers to reference a new version solidThermo as well
__________________
A CHEERING BAND OF FRIENDLY ELVES CARRY THE CONQUERING ADVENTURER OFF INTO THE SUNSET |
|
Tags |
multiphase shear, multiphase shear thinning, shear, shear thinning, thermophysical |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to determine the mean filtered strain rate for the Smagorinsky model | levinperson | Main CFD Forum | 5 | November 30, 2015 14:00 |
Superlinear speedup in OpenFOAM 13 | msrinath80 | OpenFOAM Running, Solving & CFD | 18 | March 3, 2015 06:36 |
Problems in compiling paraview in Suse 10.3 platform | chiven | OpenFOAM Installation | 3 | December 1, 2009 08:21 |
OpenFOAM15 paraFoam bug | koen | OpenFOAM Bugs | 19 | June 30, 2009 11:46 |
Species Transport model Vs discrete phase | Karthick | FLUENT | 0 | April 27, 2004 03:23 |