CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   how to impose fixed value at a point (or region) during calculation ? (https://www.cfd-online.com/Forums/openfoam-programming-development/77809-how-impose-fixed-value-point-region-during-calculation.html)

santiagomarquezd February 25, 2012 07:51

Jorkolino,

Quote:

Originally Posted by jorkolino (Post 270037)
Does anyone know how can I access the cells from a patch with name patchname ? I want to run a procedure (particle injection) for each of the cells. I have the code, but I need the cell index.

Are you referring to access to the cells which have a face on the patch? If it is the case, there is a method to find them, faceCells().

Regards.

samiam1000 February 27, 2012 04:29

Dear Santiago,

maybe you can help me, too. Do you know, by chance, how I can impose a certain value to some cells?

I am using the solver buoyantSimpleFoam, running OF 2.0.1

I have tried - following some thread in this forum - to edit the source.. But the point is that nothing happens. I guess I am editing the wring files.

Thanks,
Samuele

olivierG February 27, 2012 09:00

hello,

I am not sure this can help you, but from the 2.1 version, there is a new field source, in which you can set a value ( see explicitSetValue entry).
Only few solver have this, but you can add to the buoyantSimpleFoam solver.

regards,
olivier

samiam1000 February 27, 2012 09:04

Now I'll have a look..
This sounds great! Hope this is what I need.

And I am looking forward to have the 2.1 version installed, then.

Thanks a lot,

Samuele

santiagomarquezd February 28, 2012 16:38

Samuele, I haven't explored OpenFOAM > 1.7.x so maybe your problem is already solved by the developers as Oliver told us. The way I was thinking about is:

http://openfoamwiki.net/index.php/Co...lockedCellFoam

Regards.

samiam1000 February 29, 2012 02:42

That's good.

Thanks a lot.

As soon as I get the OF 2.1, I'll try to solve this.

Samuele.


All times are GMT -4. The time now is 16:32.