|
[Sponsors] |
August 14, 2008, 10:23 |
Hello,
sounds trivial, but ho
|
#1 |
Guest
Posts: n/a
|
Hello,
sounds trivial, but how do I create a volScalarField, if I have a Field<double> and a volMesh? Here mesh.Sf() and U are two volVectorFields from which the operator& calculates the inner product, a scalar field: Field<double> Phi=mesh.Sf() & U; But later I need a volScalarField with the values of Phi, and I see no possibility to construct this volScalarField although all geometric information is available. The problem is that every GeometricField<...> constructor requires an IOobject, and every IOobject constructor requires a filename, so that GeometricFields can never be generated on the fly (unless copied from another GeometricField), but must always be read from a file. Is this true? N. Blanc |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to convert from GeometricField to fvMatrix | waynezw0618 | OpenFOAM Running, Solving & CFD | 2 | January 8, 2021 16:35 |
IOobject | r2d2 | OpenFOAM Running, Solving & CFD | 20 | May 5, 2016 08:16 |
Manipulation of cellvalue of a geometricField | ivan_cozza | OpenFOAM Running, Solving & CFD | 2 | September 25, 2008 13:58 |
Duplicate GeometricField | reimund | OpenFOAM Running, Solving & CFD | 9 | June 9, 2008 13:47 |
Accessing data of geometricField | bird | OpenFOAM Running, Solving & CFD | 1 | August 28, 2007 18:21 |