https://linen.dev logo
is there a similar function object to 'coded' but ...
# programming
o
is there a similar function object to 'coded' but in fondation? looking to calculate the volumetric shear stress, that I am able to calculate on ESI but tlooks like it does not see it in fondation.
Copy code
SS
  {
      type coded;
      libs (utilityFunctionObjects);

      // Name of on-the-fly generated functionObject
      name SS;
      codeWrite
      #{
          // Lookup U
          const volVectorField& U = mesh().lookupObject<volVectorField>("U.water");

          // Write
          1.41421356237*mag(symm(fvc::grad(U)))().write();
      #};
  }