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

how to impose fixed value at a point (or region) during calculation ?

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2012, 08:51
Default
  #21
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
Jorkolino,

Quote:
Originally Posted by jorkolino View Post
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.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   February 27, 2012, 05:29
Default
  #22
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   February 27, 2012, 10:00
Default
  #23
Senior Member
 
Olivier
Join Date: Jun 2009
Location: France, grenoble
Posts: 272
Rep Power: 18
olivierG is on a distinguished road
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
olivierG is offline   Reply With Quote

Old   February 27, 2012, 10:04
Default
  #24
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
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
samiam1000 is offline   Reply With Quote

Old   February 28, 2012, 17:38
Default
  #25
Senior Member
 
santiagomarquezd's Avatar
 
Santiago Marquez Damian
Join Date: Aug 2009
Location: Santa Fe, Santa Fe, Argentina
Posts: 452
Rep Power: 24
santiagomarquezd will become famous soon enough
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.
__________________
Santiago MÁRQUEZ DAMIÁN, Ph.D.
Research Scientist
Research Center for Computational Methods (CIMEC) - CONICET/UNL
Tel: 54-342-4511594 Int. 7032
Colectora Ruta Nac. 168 / Paraje El Pozo
(3000) Santa Fe - Argentina.
http://www.cimec.org.ar
santiagomarquezd is offline   Reply With Quote

Old   February 29, 2012, 03:42
Default
  #26
Senior Member
 
Samuele Z
Join Date: Oct 2009
Location: Mozzate - Co - Italy
Posts: 520
Rep Power: 19
samiam1000 is on a distinguished road
That's good.

Thanks a lot.

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

Samuele.
samiam1000 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
Torque Calculation at Arbitrary Point Mojtaba Main CFD Forum 0 February 14, 2009 01:58
Calculation torque on arbitrary point Mojtaba Main CFD Forum 0 February 9, 2009 01:08
CFX4.3 -build analysis form Chie Min CFX 5 July 13, 2001 00:19
Grid refinement with wall functions Mark Render Main CFD Forum 8 May 2, 2000 08:09
Non-uniform grid calculation Aspens Main CFD Forum 1 February 23, 2000 15:15


All times are GMT -4. The time now is 06:57.