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

adding compressibility to icoFsiElasticNonLinULSolidFoam

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 3, 2016, 21:31
Default adding compressibility to icoFsiElasticNonLinULSolidFoam
  #1
Member
 
Al
Join Date: Jul 2013
Location: Japan
Posts: 47
Blog Entries: 3
Rep Power: 14
donQi is on a distinguished road
Hello,

we have a microwave rocket facility where the intake vanes are deformed after the passage of a shockwave, and we would like to simulate this in openFOAM.

Since we need both FSI and compressibility we were trying to merge icoFsiElasticNonLinULSolidFoam with rhoPisoFoam.

The solver (please find attached) compiles well in foam extend 3.2, but when I test it with the tutorial tutorials/solidMechanics/icoFsiElasticNonLinULSolidFoam/HronTurekFsi/
the following error appears:

Selecting RAS turbulence model laminar
Creating field DpDt
Floating point exception (core dumped)

I think that the floating point exception is originated from DpDT expression in createFields.H
volScalarField DpDt =
fvc:: DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);

until now my attempts (like in createFields.H add 0.00001 to avoid 0 division etc) failed.
If anyone has any suggestions will be greatly appreciated.

Best regards,
Al
Attached Files
File Type: gz rhoPisoFSIFoam.tar.gz (11.5 KB, 7 views)
donQi is offline   Reply With Quote

Old   January 10, 2016, 21:53
Default
  #2
Member
 
Al
Join Date: Jul 2013
Location: Japan
Posts: 47
Blog Entries: 3
Rep Power: 14
donQi is on a distinguished road
one more observation : the error above appears using the HronTurekFsi/ left unchanged apart from adding the T file in 0. Turbulence is set off.

Last edited by donQi; January 11, 2016 at 18:19.
donQi is offline   Reply With Quote

Old   January 14, 2016, 04:44
Default
  #3
Member
 
Al
Join Date: Jul 2013
Location: Japan
Posts: 47
Blog Entries: 3
Rep Power: 14
donQi is on a distinguished road
the error is due to a division by 0 that happens in createFields.H:

Code:
    Info<< "Creating field DpDt\n" << endl;
    
    // debugging
    Info<< "value of p\n" << p << endl;    
    
    volScalarField DpDt =
        // thermo.p();  // for debugging
        fvc::DDt(surfaceScalarField("phiU", phi/fvc::interpolate(rho)), p);
in my p file I was using :
Code:
internalField   uniform 0;

boundaryField
{
    plate
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 0;
by setting p to a value different from zero,

Code:
internalField   uniform 42;

boundaryField
{
    plate
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 42;
the error disappears and I can go on with further debugging

Code:
Creating field DpDt

value of p
dimensions      [1 -1 -2 0 0 0 0];

internalField   uniform 42;

boundaryField
{
    plate
    {
        type            zeroGradient;
    }
    outlet
    {
        type            fixedValue;
        value           uniform 42;
    }
    inlet
    {
        type            zeroGradient;
    }
    cylinder
    {
        type            zeroGradient;
    }
    bottom
    {
        type            zeroGradient;
    }
    top
    {
        type            zeroGradient;
    }
    frontAndBackPlanes
    {
        type            empty;
    }
}

Reading incremental displacement field DU

Patch plate    Traction boundary field: DU
    nonLinear set to updated Lagrangian
--> FOAM Warning : The gradScheme for DU should be "extendedLeastSquares 0" for the boundary non-orthogonal correction to be right
Reading incremental displacement field DV

Reading accumulated velocity field V

Reading accumulated stress field sigma

Reading incremental stress field DSigma

Selecting rheology model linearElastic
Creating constitutive model

Reading coupling properties
Create fluid-to-solid and solid-to-fluid interpolators
Check fluid-to-solid and solid-to-fluid interpolators
Fluid-to-solid face interpolation error: 1.24127e-16
Solid-to-fluid face interpolation error: 1.24127e-16
Courant Number mean: 0 max: 0 velocity magnitude: 0

Starting time loop

Time = 0.001

Courant Number mean: 0 max: 0 velocity magnitude: 0
Selecting coupling scheme Aitken

Last edited by donQi; January 14, 2016 at 23:11.
donQi is offline   Reply With Quote

Old   May 2, 2016, 19:33
Default
  #4
Member
 
Al
Join Date: Jul 2013
Location: Japan
Posts: 47
Blog Entries: 3
Rep Power: 14
donQi is on a distinguished road
I attach here the current version of the solver. It runs without errors with a slightly modified version of the HronTurekFsi tutorial, but handle with care, still needs validation.
Attached Files
File Type: gz rhoPisoFSIFoam.tar.gz (12.5 KB, 10 views)
donQi is offline   Reply With Quote

Old   May 2, 2016, 19:41
Default
  #5
Member
 
Al
Join Date: Jul 2013
Location: Japan
Posts: 47
Blog Entries: 3
Rep Power: 14
donQi is on a distinguished road
I attach also the modified version of HronTurekFsi used as test case for the solver.
for size reason the fluid.msh is not included, you can copy it from the original HronTurekFsi tutorial
Attached Files
File Type: gz HronTurekFsi-modified.tar.gz (22.9 KB, 6 views)
donQi is offline   Reply With Quote

Old   May 3, 2016, 09:34
Default
  #6
Member
 
Mehdi Aminyavari
Join Date: Feb 2016
Location: Milan
Posts: 35
Rep Power: 10
Mehdi3031 is on a distinguished road
based on my experience this error can be due to two reasons:
1) you made mistake in changing and modifying the solver
2) in your initialization, one of the fields lets say P , is given as
Code:
internalField   uniform 0;
which is being used in your solver in denominator and causes a division by zero! so try to give a non zero value to all the internal fields like 0.001, any how its a first guess and will be updated and wont change anything in the final result.

Hope it will help
Mehdi
Mehdi3031 is offline   Reply With Quote

Reply

Tags
fsi compressible solver


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
How I can introduce my power heat (W) in chtMultiRegionFoam? aminem OpenFOAM Pre-Processing 32 August 29, 2019 03:23
chtMultiRegionSimpleFoam samiam1000 OpenFOAM Running, Solving & CFD 39 March 31, 2016 09:43
chtMultiRegionSimpleFoam: strange error samiam1000 OpenFOAM Running, Solving & CFD 26 December 29, 2015 23:14
Compressible fluid at high velocity in Muti-region solver vineet_bhola OpenFOAM Running, Solving & CFD 16 October 26, 2015 06:54
Help with chtMultiRegionFoam jbvw96 OpenFOAM Running, Solving & CFD 2 December 26, 2010 18:16


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