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

topoSet/setSet and fvOptions

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 28, 2019, 05:39
Default topoSet/setSet and fvOptions
  #1
pod
New Member
 
Join Date: Jun 2015
Posts: 16
Rep Power: 10
pod is on a distinguished road
Hello everyone,
I have a problem with chtMultiRegionFoam regarding the fvOptions file. I would like to impose a heat volumetric generation in PART of a region. (When I use the cellZone mode in fvOptions selecting one entire region, the code runs well.)
The problem starts when I try to use cellSet mode and select a cellSet that I generate in topoSetDict:
- if I put the topoSet file in "system" folder, it creates a "sets" folder in a "polymesh" folder OUTSIDE the regions folders and not inside a "polymesh" folder of a particular region (where the heat source should be); this causes that openfoam doesn't find the cellSet because the fvOptions file is inside the folder of the region where the Eeqn should take the source from.
- if I put the fvOptions file outside the regions folders in "constant", then openfoam finally finds the cellSet, but the heat source is completely absent in the simulation, as fvOptions is not associated to any Eeqn.


does anybody know a solution?
I also tried setSet but still there's no heat generation.


thanks to anybody who's willing to answer
pod is offline   Reply With Quote

Old   January 28, 2019, 07:09
Default
  #2
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Hi!


Maybe I don't uderstand your problem perfectly, but try to put the topoSetDict into the system/regionName and use the utility as "topoSet -region regionName", and put the fvOptions file into the system/regionName folder.

Of course you have to change the 'regionName'
simrego is offline   Reply With Quote

Old   January 28, 2019, 07:28
Default
  #3
pod
New Member
 
Join Date: Jun 2015
Posts: 16
Rep Power: 10
pod is on a distinguished road
Quote:
Originally Posted by simrego View Post
Hi!


Maybe I don't uderstand your problem perfectly, but try to put the topoSetDict into the system/regionName and use the utility as "topoSet -region regionName", and put the fvOptions file into the system/regionName folder.

Of course you have to change the 'regionName'
Hello simrego,
thank you for your interest, from your answer I can understand that you understood my problem despite of my bad explanation.
Indeed I actually tried what you propose but it didn't work unfortunately: it still doesn't create the "sets" folder inside the region's "polymesh" folder. So fvOptions doesn't find the cellSet.
Any other idea? thanks
pod is offline   Reply With Quote

Old   January 28, 2019, 07:42
Default
  #4
Senior Member
 
anonymous
Join Date: Jan 2016
Posts: 416
Rep Power: 14
simrego is on a distinguished road
Check this tutorial! It is in OF +1806, maybe also in OF v6, I'm not sure:
tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/
there is a region called gas, with an implicitheatSource on a cellSet.
And sorry, I think i was wrong. Solid needs the fvOptions file in the system folder (at least i put there always and working without problem), and for the fluid in the constant based on this tutorial.
simrego is offline   Reply With Quote

Old   January 30, 2019, 07:57
Default
  #5
pod
New Member
 
Join Date: Jun 2015
Posts: 16
Rep Power: 10
pod is on a distinguished road
Quote:
Originally Posted by simrego View Post
Check this tutorial! It is in OF +1806, maybe also in OF v6, I'm not sure:
tutorials/heatTransfer/chtMultiRegionFoam/reverseBurner/
there is a region called gas, with an implicitheatSource on a cellSet.
And sorry, I think i was wrong. Solid needs the fvOptions file in the system folder (at least i put there always and working without problem), and for the fluid in the constant based on this tutorial.
thanks for your help but unfortunately that tutorial has just one topoSetDict so, even though it's inside one region's folder, it gives no problem. I found a solution which is ugly but still it works: I simply use the command mv to move the sets file I'm interested in into the region's folder in constant.
thanks
pod is offline   Reply With Quote

Old   April 30, 2019, 05:41
Default
  #6
Senior Member
 
Raza Javed
Join Date: Apr 2019
Location: Germany
Posts: 183
Rep Power: 7
Raza Javed is on a distinguished road
Hello,


I am having the same problem, where did you use this "mv" command to move the sets directory to the /constant/regionFolder?



Because the sets directory is generated when we run our case "./Allrun"


Thank you
Raza Javed is offline   Reply With Quote

Reply

Tags
fvoptions, setset, toposetdict

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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
Can I use fvOptions to couple a solid region and a fluid region? titanchao OpenFOAM Running, Solving & CFD 4 January 14, 2022 07:55
fvMatrix, fvOptions and SuSp: automatic implicit/explicit source-term treatment Zeppo OpenFOAM Programming & Development 7 December 15, 2021 10:20
New output variable for source term in fvoptions - without changing the solver vincent.clary OpenFOAM Programming & Development 2 June 26, 2018 05:21
problem with fvOptions in twophase eulerfoam Hamzeh_Mirab OpenFOAM Running, Solving & CFD 0 January 27, 2015 11:04
[swak4Foam] Setting BC for a passive scalar (groovy vs fvOptions) Tobi OpenFOAM Community Contributions 0 May 23, 2013 14:53


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