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

Object registry problem

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 20, 2014, 11:03
Default Object registry problem
  #1
Member
 
Hao Chen
Join Date: Aug 2014
Posts: 66
Rep Power: 0
hchen is on a distinguished road
Hi,

I want to define a boundary condition for a subset mesh motion.

I collect the boundary points by:
Code:
        pointVectorField& PointDisplacement =  const_cast<pointVectorField&>
            (
            subset1Mesh_.subMesh().objectRegistry::lookupObject<pointVectorField>
            (
            "pointDisplacement"
            )
            );

            pointField & subset1Boundary   =  refCast<pointField>(PointDisplacement.boundaryField()[patchIndex]);
where subset1Mesh is the subset-Mesh region that I want to move.

when I run the case, the error shows that:


Code:
    --> FOAM FATAL ERROR: 
      
          request for pointVectorField pointDisplacement from object Registry motionSubset failed
          available objects of type pointVectorField are
      
      0
      (
      )
      
          From function objectRegistry::lookupObject<Type>(const       word&) const
          in file       /home/hchen/foam/foam-extend-3.1/src/foam/lnInclude/objectRegistryTemplates.C       at line 139.
      
      FOAM aborting
I suspect that is due to something like the hierarchy of the object registry.It can not find the file pointDisplacement in the sub-directory motionSubset under the main directory 0.There might be something wrong withsubset1Mesh_.subMesh()....

Anybody could help me? Thanks very much!

Best regards
Hao
hchen is offline   Reply With Quote

Old   August 21, 2014, 06:31
Default
  #2
Member
 
Hao Chen
Join Date: Aug 2014
Posts: 66
Rep Power: 0
hchen is on a distinguished road
Hi,

I solve that problem..

The file Pointlaplacian dissappeared...just add it and it is ok.
hchen is offline   Reply With Quote

Reply

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
area does not match neighbour by ... % -- possible face ordering problem St.Pacholak OpenFOAM 10 February 7, 2024 22:50
strange problem with data seav OpenFOAM Running, Solving & CFD 0 April 11, 2014 06:01
Is this the correct approach to my problem? (UDF for object in motion) charlestan88 Fluent UDF and Scheme Programming 5 October 27, 2013 07:09
OpenFOAM 1.6.x - CentOS 5.3 x86_64 linnemann OpenFOAM Installation 68 April 22, 2013 12:03
CCL / Monitor Object Problem James Date CFX 4 September 29, 2010 03:23


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