|
[Sponsors] |
adding compressibility to icoFsiElasticNonLinULSolidFoam |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
January 3, 2016, 21:31 |
adding compressibility to icoFsiElasticNonLinULSolidFoam
|
#1 |
Member
|
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 |
|
January 10, 2016, 21:53 |
|
#2 |
Member
|
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. |
|
January 14, 2016, 04:44 |
|
#3 |
Member
|
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); Code:
internalField uniform 0; boundaryField { plate { type zeroGradient; } outlet { type fixedValue; value uniform 0; Code:
internalField uniform 42; boundaryField { plate { type zeroGradient; } outlet { type fixedValue; value uniform 42; 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. |
|
May 3, 2016, 09:34 |
|
#6 |
Member
Mehdi Aminyavari
Join Date: Feb 2016
Location: Milan
Posts: 35
Rep Power: 10 |
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; Hope it will help Mehdi |
|
Tags |
fsi compressible solver |
|
|
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 |