CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Community Contributions > OpenFOAM CC Toolkits for Fluid-Structure Interaction

[solids4Foam] Missing interpolate(sigma0) in fvSchemes in some tutorials

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Krapf

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 20, 2023, 03:46
Default Missing interpolate(sigma0) in fvSchemes in some tutorials
  #1
Senior Member
 
Join Date: Oct 2017
Posts: 131
Rep Power: 9
Krapf is on a distinguished road
Hi,

I have installed solids4foam v2.0 from source in combination with OpenFOAM-v2012. I did not install the dependencies. No build errors were reported.
However with ./Alltest the following 16 tutorials fail:

Code:
Application solids4Foam - case flexibleDamBreak: ** FOAM FATAL ERROR **
Application solids4Foam - case oneWayCavity: ** FOAM FATAL ERROR **
Application solids4Foam - case perpendicularFlap: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/cantilever2d/explicitCantilever2d: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/cantilever2d/segregatedCantilever2d: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/cantilever2d/vertexCentredCantilever2d: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/patchTest: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/plateHole: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/plateWithFixedInternalCells: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/punch: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/rigidCylinderContactBrick: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/slidingFrictionBall: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/wobblyNewton: ** FOAM FATAL ERROR **
Application solids4Foam - case thermoelasticity/hotCylinder/hotCylinder: ** FOAM FATAL ERROR **
Application solids4Foam - case thermoelasticity/hotCylinder/hotCylinderPredefinedTFieldMultipleMaterials: ** FOAM FATAL ERROR **
Application solids4Foam - case thermoelasticity/hotSphere: ** FOAM FATAL ERROR **
For vertexCentredCantilever2d and wobblyNewton, the error is that PETSc is not installed. The others all complain about the missing entry 'interpolate(sigma0)' in fvSchemes. Adding this entry, the tutorials run without problems (only tested it for a few).
Did something go wrong during the installation or is this entry missing in the tutorials? I almost can't imagine the latter, as it would surely have been noticed already....

Thanks!
Krapf is offline   Reply With Quote

Old   April 26, 2023, 05:01
Default
  #2
Senior Member
 
Join Date: Oct 2017
Posts: 131
Rep Power: 9
Krapf is on a distinguished road
I just tried it with the development version (last commit: 70e7f9e). There the addition of 'interpolate(sigma0)' in fvSchemes is not necessary.
bigphil likes this.
Krapf is offline   Reply With Quote

Old   June 14, 2023, 07:03
Default Tutorial Test Error
  #3
New Member
 
Sokvisal MOM
Join Date: Jun 2023
Posts: 3
Rep Power: 3
Sokvisal is on a distinguished road
Hi,

I do have the same problem when running the ./Alltest command. At the end of log.Alltest file, it includes the summary statistics below:

Code:
Summary statistics
    Number of cases where a run was attempted: 48
    Number of cases where the solver failed: 16
    Number of cases where another command failed: 1

The solids4Foam solver failed in the following cases:
Application solids4Foam - case flexibleDamBreak: ** FOAM FATAL ERROR **
Application solids4Foam - case oneWayCavity: ** FOAM FATAL ERROR **
Application solids4Foam - case perpendicularFlap: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/cantilever2d/explicitCantilever2d: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/cantilever2d/segregatedCantilever2d: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/cantilever2d/vertexCentredCantilever2d: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/patchTest: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/plateHole: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/plateWithFixedInternalCells: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/punch: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/rigidCylinderContactBrick: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/slidingFrictionBall: ** FOAM FATAL ERROR **
Application solids4Foam - case linearElasticity/wobblyNewton: ** FOAM FATAL ERROR **
Application solids4Foam - case thermoelasticity/hotCylinder/hotCylinder: ** FOAM FATAL ERROR **
Application solids4Foam - case thermoelasticity/hotCylinder/hotCylinderPredefinedTFieldMultipleMaterials: ** FOAM FATAL ERROR **
Application solids4Foam - case thermoelasticity/hotSphere: ** FOAM FATAL ERROR **
Moreover, I could give an example of log.solids4Foam in flexibleDamBreak case below:

Code:
/*---------------------------------------------------------------------------*\
| =========                 |                                                 |
| \\      /  F ield         | OpenFOAM: The Open Source CFD Toolbox           |
|  \\    /   O peration     | Version:  2012                                  |
|   \\  /    A nd           | Website:  www.openfoam.com                      |
|    \\/     M anipulation  |                                                 |
\*---------------------------------------------------------------------------*/
Build  : _269d0ffd5c-20210619 OPENFOAM=2012 patch=210618
Arch   : "LSB;label=32;scalar=64"
Exec   : solids4Foam
Date   : Jun 13 2023
Time   : 15:26:36
Host   : p-gc002
PID    : 363700
I/O    : uncollated
Case   : /home/.../OpenFOAM/...-v2012/solids4foam-2.0/tutorialsTest/fluidSolidInteraction/flexibleDamBreak
nProcs : 1
trapFpe: Floating point exception trapping enabled (FOAM_SIGFPE).
fileModificationChecking : Monitoring run-time modified files using timeStampMaster (fileModificationSkew 5, maxFileModificationPolls 20)
allowSystemOperations : Allowing user-supplied system call operations

// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
Create time

--> FOAM Warning : 
    From static Foam::IOstreamOption::compressionType Foam::IOstreamOption::compressionEnum(const Foam::word&, Foam::IOstreamOption::compressionType)
    in file db/IOstreams/IOstreams/IOstreamOption.C at line 115
    Unknown compression specifier 'uncompressed', using compression off
/*---------------------------------------------------------------------------*\
|    For further information on the solids4Foam toolbox implementations,      |
|    please see the following publications:                                   |
|                                                                             |
|    P. Cardiff, A Karac, P. De Jaeger, H. Jasak, J. Nagy, A. Ivankovic,      |
|    Z. Tukovic: An open-source finite volume toolbox for solid mechanics and |
|    fluid-solid interaction simulations. arXiv:1808.10736v2, 2018, available |
|    at https://arxiv.org/abs/1808.10736.                                     |
|                                                                             |
|    Z. Tukovic, A. Karac, P. Cardiff, H. Jasak, A. Ivankovic: OpenFOAM       |
|    finite volume solver for fluid-solid interaction.  Transactions of       |
|    Famena, 42 (3), pp. 1-31, 2018, 10.21278/TOF.42301.                      |
\*---------------------------------------------------------------------------*/

Selecting physicsModel fluidSolidInterface
Selecting fluidSolidInterface Aitken

Selecting fluidModel interFluid
Selecting dynamicFvMesh dynamicMotionSolverFvMesh
Selecting motion solver: velocityLaplacian
Selecting motion diffusion: quadratic
Selecting motion diffusion: inverseDistance
Selecting patchDistMethod meshWave
Reading g from constant directory
No finite volume options present

Selecting incompressible transport model Newtonian
Selecting incompressible transport model Newtonian
Selecting turbulence model type laminar
Selecting laminar stress model Stokes

PIMPLE: Operating solver in PISO mode

Resetting the dimensions of p
DICPCG:  Solving for pcorr, Initial residual = 0, Final residual = 0, No Iterations 0
time step continuity errors : sum local = 0, global = 0, cumulative = 0
Courant Number mean: 0 max: 0
Selecting solidModel linearGeometryTotalDisplacement
Selecting dynamicFvMesh staticFvMesh
Creating solidTraction boundary condition
Creating fixedDisplacement boundary condition
    under-relaxation method: fixed
Creating the mechanicalModel
Selecting mechanical law linearElastic


--> FOAM FATAL IO ERROR: (openfoam-2012 patch=210618)
Entry 'interpolate(sigma0)' not found in dictionary "/home/.../OpenFOAM/...-v2012/solids4foam-2.0/tutorialsTest/fluidSolidInteraction/flexibleDamBreak/system/solid/fvSchemes.interpolationSchemes"


file: /home/.../OpenFOAM/...-v2012/solids4foam-2.0/tutorialsTest/fluidSolidInteraction/flexibleDamBreak/system/solid/fvSchemes.interpolationSchemes at line 58 to 61.

    From const Foam::entry& Foam::dictionary::lookupEntry(const Foam::word&, Foam::keyType::option) const
    in file db/dictionary/dictionary.C at line 413.

FOAM exiting

ERROR
For privacy purpose, I replace my user name with "..."

Thank you in advance.
Sokvisal is offline   Reply With Quote

Old   June 22, 2023, 13:23
Default
  #4
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Hi Sokvisal,

Have you tried the latest development branch? i.e. run the following command from inside the solids4foam directory:
Code:
> git checkout development
> git pull
> ./Allwmake
> ./Alltest
Philip
bigphil is offline   Reply With Quote

Old   July 4, 2023, 06:59
Default
  #5
New Member
 
Sokvisal MOM
Join Date: Jun 2023
Posts: 3
Rep Power: 3
Sokvisal is on a distinguished road
Dear prof. Philip,

I think I have messed up with the installation since I'm new to Ubuntu and OpenFOAM. By the way, I would like to uninstall the Solid4Foam-2.0 and reinstall it with the the latest development. Could you please tell me how can I uninstall Solid4Foam-2.0? and reinstall it with the latest development? Thank you in advance.

Sokvisal
Sokvisal is offline   Reply With Quote

Old   July 4, 2023, 07:26
Default
  #6
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by Sokvisal View Post
Dear prof. Philip,

I think I have messed up with the installation since I'm new to Ubuntu and OpenFOAM. By the way, I would like to uninstall the Solid4Foam-2.0 and reinstall it with the the latest development. Could you please tell me how can I uninstall Solid4Foam-2.0? and reinstall it with the latest development? Thank you in advance.

Sokvisal
The following steps will uninstall solids4foam:
  • Remove the solids4foam directory, e.g.
  • Code:
    > cd $FOAM_RUN/.. && rm -rf solids4Foam*
  • Remove the solids4foam solver binary:
  • Code:
    > rm $FOAM_USER_APPBIN/solids4Foam
  • Remove the solids4Foam library binaries:
  • Code:
    > rm $FOAM_USER_LIBBIN/libsolids4FoamModels.*
  • Code:
    > rm $FOAM_USER_LIBBIN/libRBFMeshMotionSolver.*
  • Code:
    > rm $FOAM_USER_LIBBIN/libblockCoupledSolids4FoamTools*
  • Code:
    > rm $FOAM_USER_LIBBIN/libabaqusUmatLinearElastic.*
  • Remove the solids4foam utility binaries:
  • Code:
    > (cd $FOAM_USER_APPBIN && rm abaqusMeshToFoam addTinyPatch foamMeshToAbaqus perturbMeshPoints)
bigphil is offline   Reply With Quote

Old   July 4, 2023, 08:56
Default
  #7
New Member
 
Sokvisal MOM
Join Date: Jun 2023
Posts: 3
Rep Power: 3
Sokvisal is on a distinguished road
Prof. Philip,

Thank you so much and I also would like to know about how to install the latest development of solid4foam. Thank you in advance.

Sokvisal
Sokvisal is offline   Reply With Quote

Old   July 4, 2023, 11:36
Default
  #8
Super Moderator
 
bigphil's Avatar
 
Philip Cardiff
Join Date: Mar 2009
Location: Dublin, Ireland
Posts: 1,093
Rep Power: 34
bigphil will become famous soon enoughbigphil will become famous soon enough
Quote:
Originally Posted by Sokvisal View Post
Prof. Philip,

Thank you so much and I also would like to know about how to install the latest development of solid4foam. Thank you in advance.

Sokvisal
The steps on the website (https://solids4foam.github.io/instal...romSource.html) can be modified to select the "development" branch:
Code:
> git clone --branch development git@github.com:solids4foam/solids4foam.git
> cd solids4foam && ./Allwmake && ./Alltest
bigphil is offline   Reply With Quote

Old   June 23, 2024, 08:59
Wink refined Solution
  #9
New Member
 
Join Date: Jun 2024
Posts: 1
Rep Power: 0
kristalklar is on a distinguished road
in th solids4foam directory:
>>git stash
>>git checkout development
>>git pull origin development
>> sudo cp optionalFixes/OpenFOAM-v2012/backwardDdtScheme.C /usr/lib/openfoam/openfoam2012/src/finiteVolume/finiteVolume/ddtSchemes/backwardDdtScheme/

>>./Allwmake

Checking ThirdParty
Checking eigen
eigen3 found
ThirdParty done

optionalFixes/Allcheck

******** PLEASE FIX THIS ***********
You should replace the file '/usr/lib/openfoam/openfoam2012/src/finiteVolume/finiteVolume/ddtSchemes/backwardDdtScheme/backwardDdtScheme.C' with 'optionalFixes/OpenFOAM-v2012/backwardDdtScheme.C'

You can do it by running the following commands:
cp optionalFixes/OpenFOAM-v2012/backwardDdtScheme.C /usr/lib/openfoam/openfoam2012/src/finiteVolume/finiteVolume/ddtSchemes/backwardDdtScheme/
wmake libso /usr/lib/openfoam/openfoam2012/src/finiteVolume
************************************


******** PLEASE FIX THIS ***********
Please replace the files above
************************************

** ERROR with optionalFixes **
Please make the file replacements described above, or skip these
checks by setting 'export S4F_NO_FILE_FIXES=1'

>> which wmake
it returns a path to use for here
>>sudo -E <<previous Path>> libso /usr/lib/openfoam/openfoam2012/src/finiteVolume
>>./Allwmake
>>cd tutorials/
>>./Alltest
kristalklar 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
[OpenFOAM.org] RHEL 7.8 Issues installing ParaView - Third Party install not creating OpenMPI browny OpenFOAM Installation 2 April 24, 2021 06:18
Tutorials missing in OpenFoam 141 jam OpenFOAM Running, Solving & CFD 4 January 7, 2008 16:36
Missing tets along line when meshing with ICEM CFD Georges P. Côté CFX 6 March 23, 2006 01:34
tutorials for icem-cfd v4.1 vince Main CFD Forum 0 August 23, 2003 16:25
Where can I find Airpak help doc. and tutorials? Hotlood Wong FLUENT 3 April 23, 2001 04:55


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