|
[Sponsors] |
How to set values for specific regions permanently during the simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
July 23, 2017, 14:24 |
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 |
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 |
|
July 23, 2017, 16:38 |
|
#2 |
Senior Member
|
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). |
|
July 23, 2017, 16:46 |
|
#3 | |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
Quote:
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 |
||
July 23, 2017, 16:56 |
|
#4 |
Senior Member
|
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.
|
|
July 23, 2017, 16:58 |
|
#5 | |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
Quote:
Thanks for the help, let me have a try. Have a nice day. Best regard, Peter |
||
July 24, 2017, 13:43 |
|
#6 |
Senior Member
Peter Shi
Join Date: Feb 2017
Location: Davis
Posts: 102
Rep Power: 9 |
||
Tags |
setfields |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Set up air-conditioner simulation | tongba99 | FLUENT | 2 | December 23, 2016 11:58 |
Problem storing values at UDM for tranisient dynamic mesh simulation | xab | Fluent UDF and Scheme Programming | 4 | December 22, 2016 05:10 |
Monitor point values in a steady state simulation | Kushagra | CFX | 2 | July 13, 2008 21:03 |
Numerical values from simulation | Ravi | FLUENT | 0 | February 11, 2003 10:02 |
How to set up a 1-D simulation | Olof Liungman | Phoenics | 1 | February 1, 2002 13:06 |