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

Problem about setFields

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 24, 2018, 12:59
Default
  #21
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,097
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Shafik,

Did you update the boxToCell details inside the setFieldsDict?
My guess is that your "box" is outside of your domain i.e. use checkMesh to check the bounds of your domain and make sure the boxToCell is inside this (be careful of units).

Philip
bigphil is offline   Reply With Quote

Old   January 24, 2018, 13:25
Default Thanks
  #22
Member
 
Shafik Walakaka
Join Date: Oct 2017
Posts: 38
Rep Power: 9
walakaka is on a distinguished road
Quote:
Originally Posted by bigphil View Post
Hi Shafik,

Did you update the boxToCell details inside the setFieldsDict?
My guess is that your "box" is outside of your domain i.e. use checkMesh to check the bounds of your domain and make sure the boxToCell is inside this (be careful of units).

Philip
Thanks for your help Philip, it was the cause of the issue! Didnt realize that the dimension conversion in blockMeshDict does not apply to setFieldsDict causing my box to be outside my domain.

Thanks heaps again!
walakaka is offline   Reply With Quote

Old   December 9, 2018, 00:59
Default setFieldsDict - in the form of sphere for 1D solver
  #23
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 355
Rep Power: 12
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
Hello everyone,
My topic of research is on coke oven process using 1D solver. Heat transfer is considered to be one-dimensional for the lump coal (placed inside the domain).
To define geometrical regions in the form of sphere (coal) inside my domain, I adopted setFieldsDict file ~ to initialize fields. But unfortunately, the set field directory gives shapes of sphere for 2D or 3D modeling in better way - whereas not in the case of 1D modeling.
I am hereby including my blockMeshDict file (only blocks) and setFieldsDict file.


blockMeshDict file:
convertToMeters 0.01;
vertices
(
(0 0 0) (15 0 0) (15 1 0) (0 1 0) (0 0 7) (15 0 7) (15 1 7) (0 1 7)
);
blocks
(
hex (0 1 2 3 4 5 6 7) (1250 1 1) simpleGrading (1 1 1)
);
edges
(
);

setFieldsDict file:

defaultFieldValues
(
volScalarFieldValue C 0
);

regions
(
sphereToCell
{
centre (0.03 0 0.03);
radius 0.02;

fieldValues
(
volScalarFieldValue C 800
);
}
);


Dear Foamers, I want to know the possibility of creating fields in the form of sphere inside my domain for 1D solver using setFieldsDict.
If not setfieldDict, is there any relevant options to initialize fields for 1D solver ?

Kindly share your ideas plzz..

Thank you
Kummi is offline   Reply With Quote

Old   December 9, 2018, 01:15
Default
  #24
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 355
Rep Power: 12
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
As a result, the initialized field in paraFoam [Attachment] ~ is not in the form of sphere because the set field dimensions is influenced only in X- directional for 1D mesh.
Attached Images
File Type: png 1D.png (11.0 KB, 10 views)
Kummi 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
SetFields runs with no errors but doesnbt change fields adamsview OpenFOAM Pre-Processing 3 December 12, 2014 22:03
InterDyMFoam and problem with setFields chris_sev OpenFOAM Running, Solving & CFD 1 March 23, 2009 22:23
Setfields inoutlet and water and air patches erik023 OpenFOAM Pre-Processing 1 September 29, 2008 11:05
Regarding setFields file 21kalee OpenFOAM Running, Solving & CFD 0 January 14, 2008 06:42
problem in solving "wave generation" problem san FLUENT 2 April 4, 2006 00:37


All times are GMT -4. The time now is 04:30.