CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

PolyMesh Question

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   June 19, 2006, 10:13
Default In regards to a simulation tha
  #1
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
In regards to a simulation that has a mesh that changes with time. If the only instance of polyMech occurs in the constant folder then that mesh is used for the whole simulation. And if there is an instance of polyMesh within each time then the mesh is reloaded each time step.

My question is if there is a polyMesh in constant and one in time step 1, do I use the mesh from constant or from timestep 1 for my other timesteps?

Or is it impossible for this to happen?

Thanks.
tj22 is offline   Reply With Quote

Old   June 19, 2006, 10:26
Default Hi Terry, I hope this can b
  #2
Member
 
Tommaso Lucchini
Join Date: Mar 2009
Posts: 82
Rep Power: 8
lucchini is on a distinguished road
Hi Terry,

I hope this can be helpful....

======================================
CASE 1

startTime 0;
no mesh in 0/polyMesh
the solver will create the mesh from constant/polyMesh
======================================
CASE 2

startTime 1;
no mesh in 1/polyMesh
the solver will create the mesh from constant/polyMesh
======================================
CASE 3

startTime 1;
mesh defined in 1/polyMesh
the solver will create the mesh from 1/polyMesh
=====================================

Regards.
Tommaso
lucchini is offline   Reply With Quote

Old   June 19, 2006, 11:06
Default I need to clarify my question.
  #3
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
I need to clarify my question. I am not running the simulations I am using the visualizing the results in paraview using a reader I am writing, so I know the following:

There will be a polymesh in constant.
There can be a polymesh in the time steps.

My question is if there is a polymesh dir in constant and say time step 1 and none in the others. For say, time step 3 do I use the polymesh instances from timestep 1 or constant?

Or is it not possible to have polymeshes at random time steps ie if there is a polymesh directory in timestep 1, there will also be one in 2,3,4..etc?

Thanks.
tj22 is offline   Reply With Quote

Old   June 19, 2006, 11:49
Default For this purpose, just think o
  #4
Senior Member
 
Eugene de Villiers
Join Date: Mar 2009
Posts: 725
Rep Power: 12
eugene is on a distinguished road
For this purpose, just think of constant as time = -1

The mesh from the most recent timestep will generally be used (unless specified otherwise).

It is possible to have polyMeshes in any combination of timesteps and/or constant. The above still holds.
eugene is offline   Reply With Quote

Old   June 19, 2006, 15:33
Default In which file is that specifie
  #5
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
In which file is that specified?
tj22 is offline   Reply With Quote

Old   June 20, 2006, 02:32
Default The current time is specified
  #6
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
The current time is specified normally by system/controlDict (for OF applications) or by the time slider (in the ParaFoam reader).

From there it searches backwards for the first time directory containing polyMesh/points (those are the new points, i.e. geometry) and same for polyMesh/faces (and from this it reads the topology - owner,neighbour,faces,points,boundary). They can be different!
mattijs is offline   Reply With Quote

Old   June 20, 2006, 07:14
Default So the points can reside separ
  #7
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
So the points can reside separately at one time say "constant" and the other attributes (faces, owner, neighbor, boundary, cellzones, pointzones, and facezones) will reside together at another time say timestep 1?
tj22 is offline   Reply With Quote

Old   June 21, 2006, 03:21
Default No, but the other way round ca
  #8
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
No, but the other way round can: the geometry ('points') is 'newer' than the topology.

Basically if the mesh is moving we only write out the 'points' file but if the mesh topology is changing we write out all the files (including points)
mattijs is offline   Reply With Quote

Old   June 21, 2006, 08:15
Default OK. Thanks.
  #9
Member
 
Terry Jordan
Join Date: Mar 2009
Posts: 95
Rep Power: 8
tj22 is on a distinguished road
OK. Thanks.
tj22 is offline   Reply With Quote

Reply

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Polymesh cells file missing fabrizio Open Source Meshers: Gmsh, Netgen, CGNS, ... 15 October 30, 2008 10:07
Blender Calculix he8 polyMesh gdbaldw OpenFOAM Meshing & Mesh Conversion 3 October 2, 2008 11:33
Basic geometric operations on polyMesh like intersections bfa OpenFOAM Running, Solving & CFD 1 March 14, 2008 06:26
Question to UDF Claud FLUENT 1 April 10, 2007 17:02
question about LES gino briganti FLUENT 3 June 27, 2005 06:05


All times are GMT -4. The time now is 09:23.