|
[Sponsors] |
February 1, 2018, 13:11 |
Access (I, J) component of a volTensorField
|
#1 |
New Member
Gianluca
Join Date: Mar 2011
Posts: 1
Rep Power: 0 |
How can I access the (I, J) component of a volTensorField?
I am able to do just that with a Tensor2 such as - TensorN<scalar, 2> aa - aa(0, 1) = -1.0 - Info << aa(0, 1) << end; I then get the value -1.0 from location (0, 1) of tensor2. How do I do that for a volTensorField created with tensor2 vectors? I am trying to use each component of the volTensorField as a scalar field and perform operations on it. Thanks. |
|
February 1, 2018, 21:22 |
|
#2 |
Senior Member
Join Date: Aug 2013
Posts: 407
Rep Power: 16 |
Hi,
Have you taken a look at this? http://foam.sourceforge.net/docs/Gui...mmersGuide.pdf Cheers, Antimony |
|
February 15, 2018, 08:53 |
|
#3 |
New Member
shayan tanweer
Join Date: Oct 2016
Location: DELHI,INDIA
Posts: 4
Rep Power: 10 |
Hi,
You can access the components of volTensorField like this: volScalarField scalar_1("scalar_1", mytensorfield.component(tensor::XX)); you can access other components by replacing XX with YY, ZZ, XY, YZ, ZX etc. |
|
Tags |
field acces, tensor |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Is there a way to access the gradient limiter in Fluent ? | CFDYourself | FLUENT | 1 | February 16, 2016 06:49 |
Momentum source coefficient, cylindrical coordinates, circumferential component? | polakse | CFX | 15 | January 18, 2016 03:40 |
How can I access to a volTensorField elements? urgent!!! | adambarfi | OpenFOAM Running, Solving & CFD | 6 | May 14, 2013 17:28 |
access to velocity component in cylindrical coordinates | swati_mohanty | FLUENT | 0 | August 18, 2010 11:16 |
probes for a component of a volTensorField | titio | OpenFOAM Post-Processing | 0 | July 2, 2010 14:50 |