CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Running, Solving & CFD

Probe or something else to monitor

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 14, 2007, 20:39
Default hi a task i want to do is
  #1
New Member
 
Matthias Hoerl
Join Date: Mar 2009
Posts: 8
Rep Power: 17
hoerl is on a distinguished road
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
hoerl is offline   Reply With Quote

Old   January 15, 2007, 04:13
Default >two mesh entries: - the IO
  #2
Senior Member
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,419
Rep Power: 26
mattijs is on a distinguished road
>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.)
mattijs is offline   Reply With Quote

Old   January 15, 2007, 06:04
Default so is it possible to register
  #3
New Member
 
Matthias Hoerl
Join Date: Mar 2009
Posts: 8
Rep Power: 17
hoerl is on a distinguished road
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.
hoerl is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Probe for X or Y velocity msrinath80 OpenFOAM Running, Solving & CFD 29 July 22, 2015 17:46
Probe problem nzy102 OpenFOAM Running, Solving & CFD 1 April 14, 2008 01:16
I can not use the probe in the Paraview ztdep OpenFOAM Running, Solving & CFD 6 November 30, 2006 03:22
probe hydrogen CFX 2 May 22, 2006 11:59
problem with probe Yolanda CFX 0 May 17, 2006 06:27


All times are GMT -4. The time now is 11:50.