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

[solidMechanics] a defect of solidMechanics in foam-extend-3.0

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 3, 2014, 08:57
Default a defect of solidMechanics in foam-extend-3.0
  #1
Member
 
xuhe-openfoam
Join Date: Aug 2013
Location: DaLian,china
Posts: 82
Rep Power: 13
bieshuxuhe is on a distinguished road
hi,
I found a defect of solidMechanics in foam-extend-3.0 !
for example , I created a myelasticNonLinULSolidFoam just changing the elasticNonLinULSolidFoam
from
Code:
    Info<< "Reading accumulated displacement field U\n" << endl;
    volVectorField U
    (
        IOobject
        (
            "U",
            runTime.timeName(),
            mesh,
            IOobject::READ_IF_PRESENT,
            IOobject::AUTO_WRITE
        ),
        mesh,
        dimensionedVector("zero", dimLength, vector::zero)
    );
to
Code:
    Info<< "Reading accumulated displacement field U\n" << endl;
    volVectorField Usolid
    (
        IOobject
        (
            "Usolid",
            runTime.timeName(),
            mesh,
            IOobject::READ_IF_PRESENT,
            IOobject::AUTO_WRITE
        ),
        mesh,
        dimensionedVector("zero", dimLength, vector::zero)
    );
of course I did all the necessary changes which means replacing the U by Usolid at other place .
then, wmake to get the myelasticNonLinULSolidFoam ! and I created a case that replace U by Usolid too !
when we use this new solver to run a case which needs to use the accumulated displacement field(for example use the timeVaringFixedDisplacement boundary) , it will be error
Code:
Starting time loop

Time = 0.01



--> FOAM FATAL ERROR: 

    request for volVectorField U from objectRegistry region0 failed
    available objects of type volVectorField are

5
(
Usolid
DUPrevIter
DU
divDSigmaLargeStrainExp
divDSigmaExp
)


    From function objectRegistry::lookupObject<Type>(const word&) const
    in file /home/sxh/foam/foam-extend-3.0/src/foam/lnInclude/objectRegistryTemplates.C at line 139.

FOAM aborting
we know that the "Usolid" should be the "volVectorField U from objectRegistry region0" , and the "Usolid" is a available object !
actually , I first found this problem in the icoFsiElasticNonLinULSolidFoam which use Usolid instead of U in solid part , for there is a U in fluid part !

I don't know what is wrong . maybe it is a bug ?
what do you think ?

thanks
bieshuxuhe is offline   Reply With Quote

Old   June 3, 2014, 10:29
Default
  #2
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,

Many of the solid mechanics boundary conditions (in $FOAM_SRC/solidModels/fvPatchFields) expect the displacement field to be called "U", and have this hard-coded into the boundary condition.

So you would need to modify the specific boundary condition if you want to change the name of the displacement field, or add an optional variable to the boundary condition definition giving the name of the displacement field.

Best regards,
Philip
bigphil is offline   Reply With Quote

Reply

Tags
solidmechanics


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
error with reactingFoam BakedAlmonds OpenFOAM Running, Solving & CFD 4 June 22, 2016 03:21
[blockMesh] error message with modeling a cube with a hold at the center hsingtzu OpenFOAM Meshing & Mesh Conversion 2 March 14, 2012 10:56
[blockMesh] BlockMesh FOAM warning gaottino OpenFOAM Meshing & Mesh Conversion 7 July 19, 2010 15:11
[blockMesh] Axisymmetrical mesh Rasmus Gjesing (Gjesing) OpenFOAM Meshing & Mesh Conversion 10 April 2, 2007 15:00
[Gmsh] Import gmsh msh to Foam adorean OpenFOAM Meshing & Mesh Conversion 24 April 27, 2005 09:19


All times are GMT -4. The time now is 17:34.