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

Are function objects (or functors) for tensor fields are defined in OpenFOAM?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 29, 2023, 22:10
Default Are function objects (or functors) for tensor fields defined in OpenFOAM?
  #1
New Member
 
pengfeiguo
Join Date: Nov 2017
Posts: 10
Rep Power: 9
pfguo is on a distinguished road
Hello to all,

I am confused by empty bracket in the following code:

Code:
(symm( L + L.T() ) * eta)(); // L is velocity gradient


Does it mean a function object of the tensor field symm( L + L.T() ) * eta) ?

I didn't find any useful information in the online documentation of OpenFOAM about such usage of tensor field.

I am not sure if function objects for tensor fields are defined in OpenFOAM.

Thanks !



The more complete code is here:
Code:
           
          const volVectorField& U = mesh.lookupObject<volVectorField>("U");
          const volScalarField& eta = mesh.lookupObject<volScalarField>("eta");
          
          volTensorField L(fvc::grad(U));
          
          symmTensorField tauP((symm( L + L.T() ) * eta)().boundaryField()[patchi]);
Attached Images
File Type: jpg function_object_of_a_tensorField.jpg (89.1 KB, 4 views)

Last edited by pfguo; May 30, 2023 at 04:15. Reason: correct english syntax error
pfguo is offline   Reply With Quote

Reply

Tags
function objects, tensors


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
[snappyHexMesh] How to define to right point for locationInMesh Mirage12 OpenFOAM Meshing & Mesh Conversion 7 March 13, 2016 15:07
[swak4Foam] installation problem with version 0.2.3 Claudio87 OpenFOAM Community Contributions 9 May 8, 2013 11:20
[blockMesh] non-orthogonal faces and incorrect orientation? nennbs OpenFOAM Meshing & Mesh Conversion 7 April 17, 2013 06:42
Compile problem ivanyao OpenFOAM Running, Solving & CFD 1 October 12, 2012 10:31
Compilation errors in ThirdPartymallochoard feng_w OpenFOAM Installation 1 January 25, 2009 07:59


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