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

how to obtain the dot product of "gradient(T)" with "gradient(U)" with expressfield

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 7, 2025, 08:01
Default how to obtain the dot product of "gradient(T)" with "gradient(U)" with expressfield
  #1
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 433
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
I want to obtain the dot product of "gradient(T)" with "gradient(U)" with fuction object "expressField", Could you pleae give me some suggetions.



HTML Code:
exprField1{    // Mandatory entries    type     exprField;    libs     (fieldFunctionObjects);    field    NewVariable;    /// action new;    ///autowrite       false;    ///store           true;    useNamePrefix   true;    // Use expression to define total pressure    executeControl  timeStep;    writeControl    writeTime;   // expression  "0.5*(magSqr(U))";     expression  "grad(T)*grad(U)";  //  dimensions  [ Pa ];}

It seems there is not "grad" function.
ztdep is offline   Reply With Quote

Old   January 7, 2025, 16:19
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 825
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
What do you mean by gradient of a velocity field?
dlahaye is offline   Reply With Quote

Old   January 7, 2025, 19:05
Default
  #3
Senior Member
 
ztdep's Avatar
 
p ding
Join Date: Mar 2009
Posts: 433
Rep Power: 19
ztdep is on a distinguished road
Send a message via Yahoo to ztdep Send a message via Skype™ to ztdep
Quote:
Originally Posted by dlahaye View Post
What do you mean by gradient of a velocity field?
thanks you for your feedback. the gradient of velocity if a tensor field.
ztdep is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
How to write Dot Product of Gradient and UDSI_G goksue FLUENT 1 January 3, 2022 06:57
How can I solve dot product field of UDS in fluent? swtbkim FLUENT 3 November 17, 2017 08:31
CFD-Post Dot Product and Table Help tonylambert86 FLUENT 0 May 31, 2013 16:37
double dot tensor product (double inner product) implementation yogzebul OpenFOAM Programming & Development 2 July 28, 2011 12:28
calculatin dot product between a tensor and vector Greg CFX 0 November 20, 2003 10:56


All times are GMT -4. The time now is 11:53.