CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Pre-Processing (https://www.cfd-online.com/Forums/openfoam-pre-processing/)
-   -   Problem about setFields (https://www.cfd-online.com/Forums/openfoam-pre-processing/62132-problem-about-setfields.html)

bigphil January 24, 2018 11:59

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

walakaka January 24, 2018 12:25

Thanks
 
Quote:

Originally Posted by bigphil (Post 679226)
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!

Kummi December 8, 2018 23:59

setFieldsDict - in the form of sphere for 1D solver
 
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 December 9, 2018 00:15

1 Attachment(s)
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.


All times are GMT -4. The time now is 10:57.