CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Meshing & Mesh Conversion

[Other] dynamicRefinefvMesh

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 18, 2018, 08:52
Unhappy dynamicRefinefvMesh
  #1
New Member
 
rain droplet
Join Date: Apr 2018
Posts: 2
Rep Power: 0
interDyFoam is on a distinguished road
Hi,

I am using Adaptive Mesh Refinement on simulations of rain drop.But the problem is it is not working on the sphere.Does anyone know why? Below are my dynamicMeshDict and setFieldsDict.

Thanks in advance,
Pete


FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicRefineFvMesh;

dynamicRefineFvMeshCoeffs
{
refineInterval 1;
field alpha1;
lowerRefineLevel 0.0000001;
upperRefineLevel 0.999;
unrefineLevel 10;
nBufferLayers 1;
maxRefinement 2;
maxCells 500000;
correctFluxes
(
(
phi
U
)
);
dumpLevel true;
}

// ************************************************** *********************** //



/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
volScalarFieldValue alpha1 0
);

regions
(
sphereToCell
{
centre (0.035 0.01 0.09);
radius 0.001;
fieldValues
(
volScalarFieldValue alpha1 1
volVectorFieldValue U (0 0 -8)
);
}

boxToCell
{
box (0 0 0.005) (0.07 0.02 0.01);
fieldValues
(
volScalarFieldValue alpha1 1
);
}


);


// ************************************************** *********************** //
Attached Images
File Type: jpg rain drop.jpg (43.6 KB, 114 views)
interDyFoam is offline   Reply With Quote

Old   April 29, 2018, 04:25
Default
  #2
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Quote:
Originally Posted by interDyFoam View Post
Hi,

I am using Adaptive Mesh Refinement on simulations of rain drop.But the problem is it is not working on the sphere.Does anyone know why? Below are my dynamicMeshDict and setFieldsDict.

Thanks in advance,
Pete


FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "constant";
object dynamicMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

dynamicFvMesh dynamicRefineFvMesh;

dynamicRefineFvMeshCoeffs
{
refineInterval 1;
field alpha1;
lowerRefineLevel 0.0000001;
upperRefineLevel 0.999;
unrefineLevel 10;
nBufferLayers 1;
maxRefinement 2;
maxCells 500000;
correctFluxes
(
(
phi
U
)
);
dumpLevel true;
}

// ************************************************** *********************** //



/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: 2.2.1 |
| \\ / A nd | Web: www.OpenFOAM.org |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class dictionary;
location "system";
object setFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

defaultFieldValues
(
volScalarFieldValue alpha1 0
);

regions
(
sphereToCell
{
centre (0.035 0.01 0.09);
radius 0.001;
fieldValues
(
volScalarFieldValue alpha1 1
volVectorFieldValue U (0 0 -8)
);
}

boxToCell
{
box (0 0 0.005) (0.07 0.02 0.01);
fieldValues
(
volScalarFieldValue alpha1 1
);
}


);


// ************************************************** *********************** //

How many cells do you have before refinement. You can find out by execution of the following command:

checkMesh

If it is higher than the number maxCells you should increase it.

Cheers,

Elham
Elham is offline   Reply With Quote

Old   April 30, 2018, 05:51
Default
  #3
New Member
 
rain droplet
Join Date: Apr 2018
Posts: 2
Rep Power: 0
interDyFoam is on a distinguished road
Thanks for your reply, but the number is good. I used paraview to get a look of the result. i do not know why it shows like below.
Attached Images
File Type: png front.png (2.3 KB, 123 views)
File Type: png left.png (1.6 KB, 108 views)
interDyFoam is offline   Reply With Quote

Old   April 30, 2018, 09:22
Default
  #4
Senior Member
 
Elham
Join Date: Oct 2009
Posts: 184
Rep Power: 16
Elham is on a distinguished road
Quote:
Originally Posted by interDyFoam View Post
Thanks for your reply, but the number is good. I used paraview to get a look of the result. i do not know why it shows like below.
It seems that it is refined in the interface.
Elham is offline   Reply With Quote

Reply

Tags
dynamicrefinefvmesh

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
continuity error occurs when combining dynamicRefineFvMesh and dynamicMotionSolverFvM doctorWho OpenFOAM Programming & Development 2 April 5, 2018 04:42
implementation of dynamicRefineFvMesh with solidBodyMotionFunction doctorWho OpenFOAM Programming & Development 0 February 13, 2018 11:07
On "correctFluxes" in dynamicRefineFvMesh solvers floquation OpenFOAM Running, Solving & CFD 1 May 23, 2017 08:13
dynamicRefineFvMesh pandajjing OpenFOAM Running, Solving & CFD 1 March 16, 2017 04:26
dynamic mesh case: dynamicRefineFvMesh razi.me05 OpenFOAM 1 October 25, 2016 05:21


All times are GMT -4. The time now is 20:37.