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

Error: icoLagrangianFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   April 29, 2009, 17:18
Default Error: icoLagrangianFoam
  #1
Senior Member
 
xinguang cui
Join Date: Mar 2009
Posts: 116
Rep Power: 8
flying is on a distinguished road
Dear all:

When I don't compute the case from 0, there is some error information as follows. Would you like to give me some advice about it?
Thanks and best regards!

Create time

Create mesh for time = 0.5

Reading transportProperties

Reading field p

Reading field U

Reading/calculating face flux field phi

Constructing Particles


unexpected class name IncompressibleCloud expected regIOobject
while reading object positions

file: /home/cui/OpenFOAM/cui-1.5/applications/solver/save_2/IcoLagrangianFoam/cavityLagrange/0.5/lagrangian/defaultCloud/positions at line 15.

From function regIOobject::readStream(const word&)
in file db/regIOobject/regIOobjectRead.C at line 114.

FOAM exiting

cui@mfc-falter:~/OpenFOAM/cui-1.5/applications/solver/save_2/IcoLagrangianFoam/cavityLagrange>
flying is offline   Reply With Quote

Old   April 30, 2009, 14:41
Default
  #2
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Seems like the Restart is broken. I'll have a look, but don't hold your breath. If you happen to find a fix before me let me know.

Bernhard
gschaider is offline   Reply With Quote

Old   May 4, 2009, 02:20
Default
  #3
Senior Member
 
xinguang cui
Join Date: Mar 2009
Posts: 116
Rep Power: 8
flying is on a distinguished road
Thanks! I will try my best to fix it, but I am good at C++ and OpenFOAM, it is possible to take long time for me to do.
flying is offline   Reply With Quote

Old   May 4, 2009, 04:03
Default
  #4
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 10
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Hi xinguang

What's you position file like? OpenFOAM read and write lagrangian field through the class of IOField. In "positions" file the word "IncompressibleCloud" should not be included.

Junwei
su_junwei is offline   Reply With Quote

Old   May 4, 2009, 06:56
Default hi gschaider
  #5
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 10
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
Hi gschaider and xinguang

The restating problem of icoLagrangianFoam is fixed. The revised version is attached

Regards,Junwei
Attached Files
File Type: gz icoLagrangianFoam.tar.gz (14.5 KB, 50 views)
su_junwei is offline   Reply With Quote

Old   May 4, 2009, 07:29
Default
  #6
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Junwei!

Quote:
Originally Posted by su_junwei View Post
The restating problem of icoLagrangianFoam is fixed. The revised version is attached
Great job.

You want to check these changes into the SVN yourself (you need a Sourceforge-account and I've got to give you write access)

Bernhard
gschaider is offline   Reply With Quote

Old   May 4, 2009, 08:43
Default gschaider
  #7
Senior Member
 
su_junwei's Avatar
 
su junwei
Join Date: Mar 2009
Location: Xi'an China
Posts: 151
Rep Power: 10
su_junwei is on a distinguished road
Send a message via MSN to su_junwei
yes,gschaider. I have one. User name: sujunwei

Junwei
su_junwei is offline   Reply With Quote

Old   May 4, 2009, 16:54
Default
  #8
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Hi Junwei!

Quote:
Originally Posted by su_junwei View Post
yes,gschaider. I have one. User name: sujunwei
You've been added with write-access. Make sure that you only check in what you want to

Bernhard
gschaider is offline   Reply With Quote

Old   May 28, 2009, 07:27
Default
  #9
New Member
 
michel elsner
Join Date: Mar 2009
Location: Germany - Berlin and Leipzig
Posts: 26
Rep Power: 8
holzmichel is on a distinguished road
Send a message via Skype™ to holzmichel
Hello,

i tried to run icoLagrangianFoam and I am using OF-1.5-dev.
With the command icoLagrangianFoam i got following message and do not know how to go on.

keyword useMomentumSource is undefined in dictionary "/home/michel/OpenFOAM/michel-1.5-dev/diplom/icoLagrangianFoam/channelParticles/constant/cloudProperties"

file: /home/michel/OpenFOAM/michel-1.5-dev/diplom/icoLagrangianFoam/channelParticles/constant/cloudProperties from line 27 to line 27.

From function dictionary::lookupEntry(const word& keyword) const
in file db/dictionary/dictionary.C at line 213.

Can somebody help me, please.
I try to understand the icoLagrangian case to make a turbLagrangianFoam solver with dynamicMesh and VOF Method.

Best regards

Michél
holzmichel is offline   Reply With Quote

Old   May 28, 2009, 11:05
Default
  #10
Assistant Moderator
 
Bernhard Gschaider
Join Date: Mar 2009
Posts: 3,912
Rep Power: 40
gschaider will become famous soon enoughgschaider will become famous soon enough
Quote:
Originally Posted by holzmichel View Post
Hello,

keyword useMomentumSource is undefined in dictionary "/home/michel/OpenFOAM/michel-1.5-dev/diplom/icoLagrangianFoam/channelParticles/constant/cloudProperties"
The answer is quite easy: if it is undefined ..... define it. Something like

useMomentumSource 0;

should be sufficient

Bernhard
gschaider is offline   Reply With Quote

Old   May 28, 2009, 11:24
Default
  #11
Senior Member
 
xinguang cui
Join Date: Mar 2009
Posts: 116
Rep Power: 8
flying is on a distinguished road
eyword useMomentumSource is undefined in dictionary "/home/michel/OpenFOAM/michel-1.5-dev/diplom/icoLagrangianFoam/channelParticles/constant/cloudProperties


Yes! The answer is very correct. But as you are a beginner, I l would like to add some words.

From the error information, you could find useMomentSource should be defined in the file of clouldProperties.

So you need to add the lines as foamer in the file of clouldProperties.
flying is offline   Reply With Quote

Old   May 29, 2009, 03:33
Default
  #12
New Member
 
michel elsner
Join Date: Mar 2009
Location: Germany - Berlin and Leipzig
Posts: 26
Rep Power: 8
holzmichel is on a distinguished road
Send a message via Skype™ to holzmichel
Thank you Bernhard and Xinguang - i will try it

Last edited by holzmichel; May 29, 2009 at 04:03.
holzmichel is offline   Reply With Quote

Old   June 11, 2009, 04:45
Default create Particle
  #13
New Member
 
michel elsner
Join Date: Mar 2009
Location: Germany - Berlin and Leipzig
Posts: 26
Rep Power: 8
holzmichel is on a distinguished road
Send a message via Skype™ to holzmichel
Hello again,

can me somebody explain useMomentumSource and subCycles, please.
The solver is working but I have new problems in using this solver because I want to inject more than 1 particle per timeStep. I thought this I can set the number of particle injection in the injectorProperties file but this is not the right way.

Thanks for your help

best regards

Michel
holzmichel is offline   Reply With Quote

Old   June 11, 2009, 04:50
Default
  #14
Senior Member
 
xinguang cui
Join Date: Mar 2009
Posts: 116
Rep Power: 8
flying is on a distinguished road
the useMomentumSource is the source term from the particles. It is Momentum Source. If you want to know more about it you need to see the file of HardBallParticle.C or IncompressibleCloud.C

For the code, it only could inject one particle per time step. If you want to inject more than one, you need to do some other work.
flying is offline   Reply With Quote

Old   June 11, 2009, 09:33
Default
  #15
Senior Member
 
xinguang cui
Join Date: Mar 2009
Posts: 116
Rep Power: 8
flying is on a distinguished road
I am sorry that I know few about your project. And I am so familiar with the icoLagrangianFoam.

But I think if you only wants to add particle in same step: One way is to change something in the code, another way is to set up the time step with very small time step, it seems that the particles are added in one step.
flying is offline   Reply With Quote

Old   June 11, 2009, 11:18
Default
  #16
New Member
 
michel elsner
Join Date: Mar 2009
Location: Germany - Berlin and Leipzig
Posts: 26
Rep Power: 8
holzmichel is on a distinguished road
Send a message via Skype™ to holzmichel
thank you for your advice.

regards

Michel
holzmichel is offline   Reply With Quote

Old   November 11, 2009, 13:26
Default
  #17
Senior Member
 
xinguang cui
Join Date: Mar 2009
Posts: 116
Rep Power: 8
flying is on a distinguished road
Another bug for icoLagrangianFoam in parallelized computing

I hope all of you are fine.
There is a big bug on "icoLagrangianFoam" in the case of paralleling computing. There is no problem for the case are computed using one process. If the mesh is decomposed in the z direction for cavity, the particle could be moved, but the result is different with case of using one process, it is the same situation for the y direction. The worst thing is that the particles can not be moved if it is decomposed in x direction after the computation starts some steps. From the position file, it could be seen that some particles dwells on the location of 0.05 in the folder of "processor0", and on another folder of "processor1" is also the same situation. It is absolutely there is some problem during the process for one particle transferring to another processor.

Does anyone also find the bug?
It is very sad I know few about the part of transfer field of particles. Who would like to give me some advice on it?

Thanks and best wishes!
flying is offline   Reply With Quote

Reply

Thread Tools
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 On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 14:05.