CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Pre-Processing

How to set values for specific regions permanently during the simulation

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 23, 2017, 13:24
Default How to set values for specific regions permanently during the simulation
  #1
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Hello there,

I know setFields can set initial values for the specific regions. However, if I want to set values for specific regions permanently during the simulation, what should I do?

Additionally, could anyone please tell me what does following list mean in setFields? (like what is the meaning of boxToCell?)
boundaryToFace
boxToCell
boxToFace
boxToPoint
cellToCell
cellToFace
cellToPoint
cylinderAnnulusToCell
cylinderToCell
faceToCell
faceToFace
faceToPoint
faceZoneToCell
faceZoneToFaceZone
fieldToCell
labelToCell
labelToFace
labelToPoint
nbrToCell
nearestToCell
nearestToPoint
normalToFace
patchToFace
pointToCell
pointToFace
pointToPoint
regionToCell
rotatedBoxToCell
setToCellZone
setToFaceZone
setToPointZone
setsToFaceZone
shapeToCell
sphereToCell
surfaceToCell
surfaceToPoint
zoneToCell
zoneToFace
zoneToPoint

So many thanks.

Best regards,
Peter
PeterShi is offline   Reply With Quote

Old   July 23, 2017, 15:38
Default
  #2
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
Hi,

You can use fixedValueConstraint. Example is in header comment of $FOAM_SRC/fvOptions/constraints/fixedValueConstraint/FixedValueConstraint.H

It is a list of available ways to describe area, where setFields will set fields. boxToCell converts box into set of cells, i.e. select all cells with centres inside a box).
alexeym is offline   Reply With Quote

Old   July 23, 2017, 15:46
Default
  #3
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by alexeym View Post
Hi,

You can use fixedValueConstraint. Example is in header comment of $FOAM_SRC/fvOptions/constraints/fixedValueConstraint/FixedValueConstraint.H

It is a list of available ways to describe area, where setFields will set fields. boxToCell converts box into set of cells, i.e. select all cells with centres inside a box).
Hello Sir,

Thanks for your reply. So two following points of boxTocell define the limits of that box and determine its corresponding place in the space, right?

Then if my region is irregular, i.e. neither can be described by the box nor the cylinder, what should I do?

I will try the suggested FixedValueConstraint first and see how it works.

So many thanks.

Best regards,
Peter
PeterShi is offline   Reply With Quote

Old   July 23, 2017, 15:56
Default
  #4
Senior Member
 
Alexey Matveichev
Join Date: Aug 2011
Location: Nancy, France
Posts: 1,930
Rep Power: 38
alexeym has a spectacular aura aboutalexeym has a spectacular aura about
Send a message via Skype™ to alexeym
There is surfaceToCell class, which can use arbitrary surface to select cells. Also "irregular" is rather vague word. Up to certain precision irregular region can be presented as a set of boxes.
alexeym is offline   Reply With Quote

Old   July 23, 2017, 15:58
Default
  #5
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by alexeym View Post
There is surfaceToCell class, which can use arbitrary surface to select cells. Also "irregular" is rather vague word. Up to certain precision irregular region can be presented as a set of boxes.
Hello Sir,

Thanks for the help, let me have a try.

Have a nice day.

Best regard,
Peter
PeterShi is offline   Reply With Quote

Old   July 24, 2017, 12:43
Default
  #6
Senior Member
 
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9
PeterShi is on a distinguished road
Quote:
Originally Posted by alexeym View Post
There is surfaceToCell class, which can use arbitrary surface to select cells. Also "irregular" is rather vague word. Up to certain precision irregular region can be presented as a set of boxes.
Hi Sir,

I succeeded with your advice, thank you so much.

Best,
Peter
PeterShi is offline   Reply With Quote

Reply

Tags
setfields


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
Set up air-conditioner simulation tongba99 FLUENT 2 December 23, 2016 10:58
Problem storing values at UDM for tranisient dynamic mesh simulation xab Fluent UDF and Scheme Programming 4 December 22, 2016 04:10
Monitor point values in a steady state simulation Kushagra CFX 2 July 13, 2008 20:03
Numerical values from simulation Ravi FLUENT 0 February 11, 2003 09:02
How to set up a 1-D simulation Olof Liungman Phoenics 1 February 1, 2002 12:06


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