CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Bugs

Minor bug in CrankNicholsonDdtScheme

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 8, 2007, 10:07
Default Description: The second time-
  #1
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Description:
The second time-step of a run using the CrankNicholsonDdtScheme is not exactly correct. The attached fix resolves this problem and improves the handling of restarts and supports the change from other schemes to the CrankNicholsonDdtScheme scheme during a run.

Solver/Application:
All using this second-order temporal derivative.

Source file:
OpenFOAM-1.4/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicholsonDdtScheme/CrankNicholsonDdtScheme.[HC]

Platform:
All.

Version:
1.4

Fix:
CrankNicholsonDdtScheme.H
CrankNicholsonDdtScheme.C
henry is offline   Reply With Quote

Old   May 15, 2007, 06:00
Default Iam installing OpenFOAM SW on
  #2
Senior Member
 
Suresh kumar Kannan
Join Date: Mar 2009
Location: Luxembourg, Luxembourg, Luxembourg
Posts: 129
Rep Power: 17
kumar is on a distinguished road
Iam installing OpenFOAM SW on a 64bit AMD machine with 2 processors. I did all the steps suggested by Hrvoje Jasak and everything worked.
(I mean the only test cases). I must say that I have to add different PATH for LIBRARY definitions to get the libraries get linked.Iam installing the SW for a user. I must say that I have NOT yet compiled the program on my machine till now.Iam installing OpenFOAM-1.4 on my machine.I want to know is there any tests which I can do to test the installation of SW? I did the the following test from icoFoam directory:
blockMesh . cavity
icoFoam . cavity
Both worked without error.
I have another question regarding the startup of
FoamX command. When I start the script I get the following error:

$strace FoamX

+ jdkhome=/usr/java/jdk1.4
+ '[' '!' -z /home/l_kumar/OpenFOAM/linux64/j2sdk1.4.2_05 ']'
+ jdkhome=/home/l_kumar/OpenFOAM/linux64/j2sdk1.4.2_05
+ '[' -z /home/l_kumar/OpenFOAM/linux64/j2sdk1.4.2_05 ']'
+ '[' '!' -x /home/l_kumar/OpenFOAM/linux64/j2sdk1.4.2_05/bin/java ']'
+ '[' -z /home/l_kumar/OpenFOAM/jobControl ']'
+ '[' '!' -d /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX ']'
+ '[' '!' -r /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/FoamXClient.cfg ']'
++ getValue /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/FoamXClient.cfg org.omg.CORBA.ORBInitialHost
+++ grep '^[ \t]*org.omg.CORBA.ORBInitialHost[ \t]*=' /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/FoamXClient.cfg
+++ sed -e 's/^[ \t]*org.omg.CORBA.ORBInitialHost[ \t]*=//'
+++ head -1
++ val=
++ '[' -z '' ']'
++ return 1
+ HOSTNAME=
+ '[' 1 -ne 0 ']'
++ uname -n
+ HOSTNAME=pc4989
++ getValue /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/FoamXClient.cfg org.omg.CORBA.ORBInitialPort
+++ grep '^[ \t]*org.omg.CORBA.ORBInitialPort[ \t]*=' /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/FoamXClient.cfg
+++ sed -e 's/^[ \t]*org.omg.CORBA.ORBInitialPort[ \t]*=//'
+++ head -1
++ val=
++ '[' -z '' ']'
++ return 1
+ HOSTPORT=
+ '[' 1 -ne 0 ']'
+ HOSTPORT=1234
+ argPort=
+ argHost=
+ args=
+ '[' '' ']'
+ XHB_PID=
+ trap cleanup 0 2 3 15
+ '[' '' -o '' ']'
+ '[' -r /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/ns.ref ']'
+ killFoamX
+ runFoamXHB
+ XHB_PID=2142
+ '[' 2142 ']'
+ '[' '!' -f /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/ns.ref ']'
+ sleep 1
Starting NameServer with inet:pc4989:1234 ...
nsd: error while loading shared libraries: libcrypto.so.0.9.7: cannot open shared object file: No such file or directory
+ '[' '!' -f /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/ns.ref ']'
+ sleep 1
+ '[' '!' -f /home/l_kumar/OpenFOAM/OpenFOAM-1.4/.OpenFOAM-1.4/apps/FoamX/ns.ref ']'
.
.
.

The above message repeats many times. I would like to know how I can overcome this error and what is the contents of the file "ns.ref". I donot have this file in the above directory.

I will appreciate very much your hrlp.

Regards,
Kumar
kumar is offline   Reply With Quote

Old   May 18, 2007, 14:01
Default Hello Henry, If I'm only us
  #3
Senior Member
 
Srinath Madhavan (a.k.a pUl|)
Join Date: Mar 2009
Location: Edmonton, AB, Canada
Posts: 703
Rep Power: 21
msrinath80 is on a distinguished road
Hello Henry,

If I'm only using icoFoam and interFoam (both in parallel), is there any way I can avoid recompiling everything? What libraries do need to be recompiled after using your updated CrankNicholsonDdtScheme.* files.

Thanks!
msrinath80 is offline   Reply With Quote

Old   May 18, 2007, 15:35
Default All the ddt functions are run-
  #4
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
All the ddt functions are run-time selectable and hence built into the finiteVolume library so you only need to recompile that library.

Henry
henry is offline   Reply With Quote

Old   May 22, 2007, 10:23
Default Hello Henry, I download your
  #5
Senior Member
 
Cedric DUPRAT
Join Date: Mar 2009
Location: Nantes, France
Posts: 195
Rep Power: 17
cedric_duprat is on a distinguished road
Hello Henry,
I download your last version of CrankNicholsonDdtScheme.* and copy it in the folder:
OpenFOAM/OpenFOAM-1.3/src/finiteVolume/finiteVolume/ddtSchemes/CrankNicholsonDdt Scheme/.
then I compiles with wmake in OpenFOAM/OpenFOAM-1.3/src/finiteVolume following your advices to pUI|
but, I have an error message :
" (...)
lnInclude/CrankNicholsonDdtScheme.C:120: error: 'const class Foam::Time' has no member named 'startTimeIndex'
lnInclude/CrankNicholsonDdtScheme.C:121: error: 'const class Foam::Time' has no member named 'startTimeIndex'
lnInclude/CrankNicholsonDdtScheme.C:131: error: 'store' is not a member of 'Foam::regIOobject'
lnInclude/CrankNicholsonDdtScheme.C:149: error: 'store' is not a member of 'Foam::regIOobject'
make: *** [Make/linuxGcc4DPOpt/pressureTransmissiveFvPatchScalarField.o] Error 1
"
I use OF v 1.3, is it the reason of the problem ?
or maybe I made something wrong ...
OUPS !! I've got a doubt now ... is your modifications only for v 1.4 of OF ?

Thanks

Cedric
cedric_duprat is offline   Reply With Quote

Old   May 22, 2007, 12:52
Default Yes the modification is for Op
  #6
Senior Member
 
Join Date: Mar 2009
Posts: 854
Rep Power: 22
henry is on a distinguished road
Yes the modification is for OpenFOAM-1.4
henry 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
Minor bug in cellQualityC lr103476 OpenFOAM Bugs 5 February 13, 2009 08:28
Minor buoyancy problem in Phoen2007 patti Phoenics 3 December 1, 2007 19:43
Minor compilation problem with Gcc42 schmidt_d OpenFOAM Bugs 1 May 9, 2007 14:11
Minor loss coefficients Nick Main CFD Forum 3 October 7, 2004 12:28
minor loss k values clifford bradford Main CFD Forum 1 August 2, 2000 17:58


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