|
[Sponsors] |
January 14, 2007, 21:39 |
hi
a task i want to do is
|
#1 |
New Member
Matthias Hoerl
Join Date: Mar 2009
Posts: 8
Rep Power: 17 |
hi
a task i want to do is monitor a few specified point locations (x,y,z) in a further step lines or planes. monitor means i want to write each time step a set of the vectors in a file. something which is similar done within the oodles solver. to my question: as there are some already existing solver stuff like reading the scalarfield of pressure in the createFields.H it comes to my mind to "auto_write" my selection with something similar. original inread and auto_write of a scalarfield: volScalarField p ( IOobject ( "p", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); so is there an possibility which makes sense that i could do something like this, right after the code above ? volScalarField * pmonit pmonit = &p pmonit( IOobject ( "pmonit", runTime.timeName(), PartOfMesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), PartOfMesh ); or is this complete rubbish ?! and if it is rubbish could someone explain me the sens of the (original code) two mesh entries ?! (the second appearance was explained in another post, if it is really for initialize the values) hopefully the flame concerning me is not to hard :-) PS: i didn't tried it so far myself cause if it is trivial wrong - it was time keeping and yes it is 2:42 in the morning *snorrrrrrrrr |
|
January 15, 2007, 05:13 |
>two mesh entries:
- the IO
|
#2 |
Senior Member
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26 |
>two mesh entries:
- the IOobject contains the database that the object should be registered onto. This database is actually the mesh. - the second mesh is needed for the construction of the volScalarField. This is needed to get all the dimensions of the mesh (numbers of cells, patches etc.) |
|
January 15, 2007, 07:04 |
so is it possible to register
|
#3 |
New Member
Matthias Hoerl
Join Date: Mar 2009
Posts: 8
Rep Power: 17 |
so is it possible to register the IOobject to mesh."selection" and as the second the whole mesh?
the output would be something like an initialized field with eg. constant 0 around the whole mesh and in the selected a few entries ?! seems to be that the probe like in the oodles solver will be the better solution for what i wanna do. nevertheless i hope someone could answer the questions above. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Probe for X or Y velocity | msrinath80 | OpenFOAM Running, Solving & CFD | 29 | July 22, 2015 18:46 |
Probe problem | nzy102 | OpenFOAM Running, Solving & CFD | 1 | April 14, 2008 02:16 |
I can not use the probe in the Paraview | ztdep | OpenFOAM Running, Solving & CFD | 6 | November 30, 2006 04:22 |
probe | hydrogen | CFX | 2 | May 22, 2006 12:59 |
problem with probe | Yolanda | CFX | 0 | May 17, 2006 07:27 |