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

how to Add the material derivative of log(T) in the constitutive equation's.

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By mAlletto
  • 1 Post By bigphil

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 20, 2021, 07:15
Smile 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
idrees khan is on a distinguished road
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
Attached Images
File Type: jpg Screenshot from 2021-01-20 12-09-16.jpg (67.6 KB, 7 views)
File Type: png Screenshot from consitutive eqaution.png (41.1 KB, 18 views)
idrees khan is offline   Reply With Quote

Old   January 20, 2021, 12:19
Default
  #2
Senior Member
 
Michael Alletto
Join Date: Jun 2018
Location: Bremen
Posts: 616
Rep Power: 16
mAlletto will become famous soon enough
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
idrees khan likes this.
mAlletto is offline   Reply With Quote

Old   January 21, 2021, 06:55
Default
  #3
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
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).
idrees khan likes this.
bigphil is offline   Reply With Quote

Old   January 21, 2021, 07:12
Default
  #4
Member
 
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7
idrees khan is on a distinguished road
Quote:
Originally Posted by mAlletto View Post
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





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
Attached Images
File Type: png Screenshot from 2021-01-21 13-08-13.png (96.0 KB, 9 views)
idrees khan is offline   Reply With Quote

Old   January 21, 2021, 07:17
Default
  #5
Member
 
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7
idrees khan is on a distinguished road
Quote:
Originally Posted by bigphil View Post
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).

Dear Cardiff,
Sorry I try both but getting the error's (see the screenshot)
Attached Images
File Type: jpg Screenshot from 2021-01-21 13-15-58.jpg (43.6 KB, 4 views)
idrees khan is offline   Reply With Quote

Old   January 21, 2021, 08:57
Exclamation
  #6
Member
 
idrees khan
Join Date: Jun 2019
Posts: 36
Rep Power: 7
idrees khan is on a distinguished road
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
idrees khan is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 00:03.