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

fvOptions - fix cellValues in cellZone with different values

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By sumitverma5977

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 26, 2017, 11:48
Default fvOptions - fix cellValues in cellZone with different values
  #1
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Hi all,

just out of curiosity. Is there a way in fvOptions to fix the values at given cells (cellZone) with different values? Using scalarFixedValueConstraint enables this possibility for a cellZone, but I only can add one value which will be used for all cells. In my case I have a cellZone (arbitrary cells) which have different values. I never worked with fvOptions too much so maybe one of you knows it. If there is not such an option I might make a patch or do a dirty solution with hard-coding and using setValues for the matrix.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   July 11, 2017, 10:46
Default
  #2
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Short info. Right now it is not working. I guess it is based on the fact that the matrix should be first constructed completely and then we should manipulate it. Doing the same things after constructing the matrix works fine and as expected. Thus, I decided to make a new solver.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   November 6, 2018, 04:27
Default
  #3
New Member
 
zeshan
Join Date: Apr 2016
Posts: 24
Rep Power: 10
Thecomebackkid is on a distinguished road
Is this also true of blue-cfd 2017 pls? I am trying to use fvOptions to make certain cellZones zero pressure and velocity within a MRF.
Thecomebackkid is offline   Reply With Quote

Old   November 6, 2018, 06:26
Default
  #4
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Tussenhausen
Posts: 2,708
Blog Entries: 6
Rep Power: 51
Tobi has a spectacular aura aboutTobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
As I pointed out, I wanted to set different values for a cellZone (cellSet). So in your case it should work without problems.
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   November 6, 2018, 06:45
Default
  #5
New Member
 
zeshan
Join Date: Apr 2016
Posts: 24
Rep Power: 10
Thecomebackkid is on a distinguished road
thanks for the confirmation.
Thecomebackkid is offline   Reply With Quote

Old   April 10, 2021, 19:13
Default
  #6
New Member
 
Join Date: Apr 2021
Posts: 1
Rep Power: 0
sumitverma5977 is on a distinguished road
I am solving incompressible flow problem using pimpleFoam solver and my computational domain is a cylinder.... I have created a cellset consisting of control volume cells at the bottom periphery(i.e. cells that lie at the circumference) of the cylinder.... I wanted to fix the pressure values of those cells(or the cellset/cellZone) to 0 value throughout the simulation time.... Looking for someways to tackle the problem, i came across "scalarFixedValueConstraint" utility and using that i tries to fix the cellzZone pressure to a 0 value but it did not help..... Later i tried looking at the source code of solver "pimpleFoam"... I found that the constructor for momentum equation is created in such a way that the right hand side comprises of "fvOptions (U)"..... Although i am not sure.... As i am looking to constrain pressure values... Should it be modified to "fvOptions (p)"? Or is there any other way to fix cellzZone pressure values to 0? I would really appreciate the help if somebody would provide hints or point to a helpful resource relating to the problem at hand.... Thanks
hhu_lulu likes this.
sumitverma5977 is offline   Reply With Quote

Old   July 11, 2022, 04:45
Default
  #7
Member
 
Join Date: Nov 2020
Posts: 53
Rep Power: 5
mikulo is on a distinguished road
Hello,

What you are trying to do is impossible. fvOptions functionality takes an argument for U and H only. However, you can make your own class but it would be so tedious. I suggest you make a code in the solver, or make a cellset and then from this cellset modify the pressure. But i don't understand why it didn't work out for you in scalarFixedValueConstraint.

Regards,
Mike
mikulo 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
fvOptions MRF error vijaykamesh OpenFOAM 1 July 28, 2016 09:37
using chemkin JMDag2004 OpenFOAM Pre-Processing 2 March 8, 2016 22:38
Jump in epsilon values near the wall : low re k-epsilon model malaboss OpenFOAM Verification & Validation 1 February 1, 2013 16:36
Ensight - node values -cell values leo FLUENT 1 May 12, 2010 08:47
To fix the Boundary Condition values JSM FLUENT 0 February 28, 2007 11:57


All times are GMT -4. The time now is 19:05.