|
[Sponsors] |
how to Add the material derivative of log(T) in the constitutive equation's. |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 20, 2021, 07:15 |
how to Add the material derivative of log(T) in the constitutive equation's.
|
#1 |
Member
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7 |
Hi Dear's.
I'm going to Add temperature Equation to viscoelasticFluidFoam solver. there is a material derivative term of log(T) (screenshot of the equation is attached )in the constitutive equation(I.e in this case Olroyd-B) kindly if any one could guide me how to write that term in OldoydB.C file. I add it like volScalarField logT = log(T); fvm::ddt(tau_,logT) + fvc::div(phi()*tau_,logT) but getting error like(screenshot is also attached) viscoelasticLaws/Oldroyd-B/Oldroyd_B.C:124:27: error: no matching function for call to ‘ddt(Foam::volSymmTensorField&, Foam::volScalarField&)’ fvm::ddt(tau_,logT) + fvc::div(phi()*tau_,logT) Note:I change to fvc and fvm respectively but getting same error's. regards Idrees khan |
|
January 20, 2021, 12:19 |
|
#2 |
Senior Member
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16 |
In your code
Code:
fvm::ddt(tau_,logT) + fvc::div(phi()*tau_,logT) you have a volTensorfield and a scalarField as argument to the function fvm::ddt(tau_,logT) the error simple say that such a function does not exist. See the progammer guid what is available |
|
January 21, 2021, 06:55 |
|
#3 |
Super Moderator
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34 |
To add to mAlletto's answer:
For explicit calculation of stress (or stress rate), you should use "fvc::" (explicit) operators, not "fvm::" (implicit) operators (which probably does not make sense). |
|
January 21, 2021, 07:12 |
|
#4 | |
Member
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7 |
Quote:
Dear Alletto, Sorry I studied about what you suggest me(here is screenshot) but I'm not getting well. kindly if you could help me. regards idrees khan |
||
January 21, 2021, 07:17 |
|
#5 | |
Member
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7 |
Quote:
Dear Cardiff, Sorry I try both but getting the error's (see the screenshot) |
||
January 21, 2021, 08:57 |
|
#6 |
Member
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7 |
Hi Dear's
Instead of adding fvc::ddt(tau_, logT) + fvc::div( phi()*tau_ ,log) I add the term in tauEqn like this tau_*fvc::ddt(logT) + tau_*fvc::div(phi(),log) and run with "wmake libso" now it compile successfully without any error's. Regards idrees khan |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Guide: Writing Equations in LaTeX on the CFD Online Forums | pete | Site Help, Feedback & Discussions | 27 | May 19, 2022 04:19 |
Simple piston movement in cylinder- fluid models | arun1994 | CFX | 4 | July 8, 2016 03:54 |
how can I add more terms in different equations for chemical reactions? | biker | Fluent Multiphase | 1 | March 27, 2015 13:19 |
modelling Differential equations in a udf | RikardMNorén | Fluent UDF and Scheme Programming | 2 | October 1, 2013 04:36 |
How to add transport equations | alimansouri | OpenFOAM Running, Solving & CFD | 6 | January 12, 2009 17:20 |