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

Search Results

Register Blogs Community New Posts Updated Threads Search

Showing results 1 to 14 of 14
Search took 0.00 seconds.
Search: Posts Made By: su_junwei
Forum: OpenFOAM Meshing & Mesh Conversion September 25, 2013, 02:31
Replies: 59
Views: 26,328
Posted By su_junwei
The return value is a list of index of neighbor...

The return value is a list of index of neighbor cells. cells can be distinguished from another from cell index, cell center, etc.
Forum: OpenFOAM Meshing & Mesh Conversion May 22, 2011, 22:38
Replies: 59
Views: 26,328
Posted By su_junwei
just write it in the time cycle. os declaration...

just write it in the time cycle. os declaration can be written in creatFields. H

You can write it like the following code

if(runTime.outputTime()) //only write at outputTime point
{
...
Forum: OpenFOAM Meshing & Mesh Conversion January 17, 2011, 07:55
Replies: 59
Views: 26,328
Posted By su_junwei
Just copy the internalField to a seperate file...

Just copy the internalField to a seperate file name *.dat

If you want to do it using a program, Just write a small tool for post processing. Read the file and write the internalField to a file
...
Forum: OpenFOAM Meshing & Mesh Conversion January 17, 2011, 05:56
Replies: 59
Views: 26,328
Posted By su_junwei
You don't have to process UMean. It should be in...

You don't have to process UMean. It should be in the time dir in your case.
Forum: OpenFOAM Meshing & Mesh Conversion December 11, 2010, 23:02
Replies: 59
Views: 26,328
Posted By su_junwei
// include the head file #include"OFstream.H" ...

// include the head file
#include"OFstream.H"

//declare a object and out the variable you want. file.dat is the name of the //file you need.

OFstream os("file.dat");

forAll(mesh.C(), i)
{...
Forum: OpenFOAM Meshing & Mesh Conversion December 11, 2010, 03:50
Replies: 59
Views: 26,328
Posted By su_junwei
A possible way can be described as follows: 1)...

A possible way can be described as follows:
1) Cut several planes along centreline transversely.
2) select points on these planes. These points are not necessary on the cell center.
3)...
Forum: OpenFOAM Meshing & Mesh Conversion December 10, 2010, 08:45
Replies: 59
Views: 26,328
Posted By su_junwei
Just use faceCells...

Just use faceCells (http://foam.sourceforge.net/docs/cpp/classFoam_1_1fvPatch.php#ae62c47adeb9efe2a27cbad4db8cedb47) in polyPatch class.

faceCells give you the index of a cell who owns the...
Forum: OpenFOAM Meshing & Mesh Conversion December 10, 2010, 08:42
Replies: 59
Views: 26,328
Posted By su_junwei
Just use sample tool in OpenFOAM. see Openfoam's...

Just use sample tool in OpenFOAM. see Openfoam's user's guide
Forum: OpenFOAM Meshing & Mesh Conversion November 17, 2010, 00:16
Replies: 59
Views: 26,328
Posted By su_junwei
Hi Pascal you can use the following code ...

Hi Pascal
you can use the following code

meshSearch ms(mesh);
label nearestCellIndex = ms.findNearestCell(p);

p is your point for searching nearest cell. nearestCellIndex...
Forum: OpenFOAM Meshing & Mesh Conversion June 6, 2010, 02:04
Replies: 59
Views: 26,328
Posted By su_junwei
Hi Ritu Just using the size function...

Hi Ritu

Just using the size function like this
label neighbourCount=mesh.cellCells()[cellI].size()

sorry for late response
Junwei
Forum: OpenFOAM Meshing & Mesh Conversion February 15, 2009, 13:19
Replies: 59
Views: 26,328
Posted By su_junwei
Hi khaled yes. That's Ok.

Hi khaled
yes. That's Ok. Just test it.
Junwei
Forum: OpenFOAM Meshing & Mesh Conversion February 15, 2009, 05:41
Replies: 59
Views: 26,328
Posted By su_junwei
Hi Khaled patchIntegra

Hi Khaled

patchIntegrate can be used to integrate over a special patch, you can use it like this

patchIntegrate fieldname patchname.

This is a postprocessing utility.

Junwei
Forum: OpenFOAM Meshing & Mesh Conversion February 15, 2009, 05:16
Replies: 59
Views: 26,328
Posted By su_junwei
Yes, Khaled, you can print the

Yes, Khaled, you can print them out. This is a list of cell index in the neighbourhood.
Junwei
Forum: OpenFOAM Meshing & Mesh Conversion February 14, 2009, 13:52
Replies: 59
Views: 26,328
Posted By su_junwei
Hi Khaled mesh.cellCell

Hi Khaled

mesh.cellCells()[cellI] gives the neighbours of cell cellI

su junwei
Showing results 1 to 14 of 14

 
Forum Jump

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