|
[Sponsors] |
Are function objects (or functors) for tensor fields are defined in OpenFOAM? |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 29, 2023, 22:10 |
Are function objects (or functors) for tensor fields defined in OpenFOAM?
|
#1 |
New Member
pengfeiguo
Join Date: Nov 2017
Posts: 10
Rep Power: 9 |
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]); Last edited by pfguo; May 30, 2023 at 04:15. Reason: correct english syntax error |
|
Tags |
function objects, tensors |
|
|
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 |