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

attach/detach (valve opening/closing)

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 20, 2009, 12:24
Default attach/detach (valve opening/closing)
  #1
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Hi,

Back in OF-1.2, I played with an example that simulates attach/detach (valve opening/closing).

I am wondering if any one has tried similar in OF-1.5.x (or OF-1.5-dev).

Any example will be highly appreciated.

Pei
phsieh2005 is offline   Reply With Quote

Old   March 21, 2009, 04:22
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
This works without problems or changes in 1.5-dev.

Enjoy,

Hrv
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   March 21, 2009, 05:18
Default
  #3
Senior Member
 
Pei-Ying Hsieh
Join Date: Mar 2009
Posts: 334
Rep Power: 18
phsieh2005 is on a distinguished road
Dear Hrv:

Thanks a lot for the reply! It is you come to the rescue again.

I tried to compile the code you gave me years ago (which worked on OF-1.2) on OF-1.5-dev, but got quite a few errors. It was late last night. I will try to see if I can get it to compile on OF-1.5-dev before you reply. But, I have attached the log below.

Pei
-----------------------------------------
hsieh@hillsdale:~/OpenFOAM/hsieh-1.5-dev/solvers/attachDetachTJunction/addTJunctionModifier> wmake
Making dependency list for source file addTJunctionModifier.C
could not open file fvCFD.H for source file addTJunctionModifier.C
SOURCE=addTJunctionModifier.C ; g++ -m64 -Dlinux64 -DDP -Wall -Wno-strict-aliasing -Wextra -Wno-unused-parameter -Wold-style-cast -march=opteron -O3 -DNoRepository -ftemplate-depth-40 -I/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/dynamicMesh/lnInclude -I/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/cfdTools/general/lnInclude -IlnInclude -I. -I/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude -I/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OSspecific/Unix/lnInclude -fPIC -c $SOURCE -o Make/linux64GccDPOpt/addTJunctionModifier.o
addTJunctionModifier.C:38:19: error: fvCFD.H: No such file or directory
In file included from addTJunctionModifier.C:46:
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/setRootCase.H: In function ‘int main(int, char**)’:
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/setRootCase.H:1: error: ‘argList’ is not a member of ‘Foam’
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/setRootCase.H:1: error: expected `;' before ‘args’
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/setRootCase.H:3: error: ‘args’ was not declared in this scope
In file included from addTJunctionModifier.C:48:
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/createTime.H:5: error: variable ‘Foam::Time runTime’ has initializer but incomplete type
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/createTime.H:5: error: incomplete type ‘Foam::Time’ used in nested name specifier
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/createTime.H:6: error: ‘args’ was not declared in this scope
In file included from addTJunctionModifier.C:49:
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/createMesh.H:4: error: ‘fvMesh’ is not a member of ‘Foam’
/home/hsieh/OpenFOAM/OpenFOAM-1.5-dev/src/OpenFOAM/lnInclude/createMesh.H:4: error: expected `;' before ‘mesh’
addTJunctionModifier.C:51: error: expected initializer before ‘&’ token
addTJunctionModifier.C:52: error: expected initializer before ‘&’ token
addTJunctionModifier.C:54: error: ‘labelList’ was not declared in this scope
addTJunctionModifier.C:54: error: expected `;' before ‘zoneFaces’
addTJunctionModifier.C:55: error: ‘boolList’ was not declared in this scope
addTJunctionModifier.C:55: error: expected `;' before ‘zoneFlip’
addTJunctionModifier.C:57: error: ‘label’ was not declared in this scope
addTJunctionModifier.C:57: error: expected `;' before ‘nZoneFaces’
addTJunctionModifier.C:61: error: ‘faceCentres’ was not declared in this scope
addTJunctionModifier.C:69: error: ‘faceAreas’ was not declared in this scope
addTJunctionModifier.C:69: error: ‘mag’ was not declared in this scope
addTJunctionModifier.C:69: error: ‘SMALL’ was not declared in this scope
addTJunctionModifier.C:72: error: ‘zoneFaces’ was not declared in this scope
addTJunctionModifier.C:72: error: ‘nZoneFaces’ was not declared in this scope
addTJunctionModifier.C:74: error: ‘VSMALL’ was not declared in this scope
addTJunctionModifier.C:76: error: ‘zoneFlip’ was not declared in this scope
addTJunctionModifier.C:83: error: ‘zoneFaces’ was not declared in this scope
addTJunctionModifier.C:83: error: ‘nZoneFaces’ was not declared in this scope
addTJunctionModifier.C:84: error: ‘zoneFlip’ was not declared in this scope
addTJunctionModifier.C:86: error: ‘Info’ was not declared in this scope
addTJunctionModifier.C:86: error: ‘nl’ was not declared in this scope
addTJunctionModifier.C:87: error: ‘endl’ was not declared in this scope
addTJunctionModifier.C:89: error: ‘List’ was not declared in this scope
addTJunctionModifier.C:89: error: ‘pointZone’ was not declared in this scope
addTJunctionModifier.C:89: error: expected primary-expression before ‘>’ token
addTJunctionModifier.C:89: error: ‘pz’ was not declared in this scope
addTJunctionModifier.C:90: error: ‘faceZone’ was not declared in this scope
addTJunctionModifier.C:90: error: expected primary-expression before ‘>’ token
addTJunctionModifier.C:90: error: ‘fz’ was not declared in this scope
addTJunctionModifier.C:91: error: ‘cellZone’ was not declared in this scope
addTJunctionModifier.C:91: error: expected primary-expression before ‘>’ token
addTJunctionModifier.C:91: error: ‘cz’ was not declared in this scope
addTJunctionModifier.C:94: error: expected type-specifier before ‘faceZone’
addTJunctionModifier.C:94: error: expected `;' before ‘faceZone’
addTJunctionModifier.C:103: error: ‘mesh’ was not declared in this scope
addTJunctionModifier.C:106: error: ‘polyMeshModifier’ was not declared in this scope
addTJunctionModifier.C:106: error: expected primary-expression before ‘>’ token
addTJunctionModifier.C:106: error: no matching function for call to ‘tm::tm(int)’
/usr/include/time.h:135: note: candidates are: tm::tm()
/usr/include/time.h:135: note: tm::tm(const tm&)
addTJunctionModifier.C:109: error: ‘scalarField’ was not declared in this scope
addTJunctionModifier.C:109: error: expected `;' before ‘triggerTimes’
addTJunctionModifier.C:110: error: ‘triggerTimes’ was not declared in this scope
addTJunctionModifier.C:116: error: expected unqualified-id before ‘[’ token
addTJunctionModifier.C:129: error: expected primary-expression before ‘)’ token
make: *** [Make/linux64GccDPOpt/addTJunctionModifier.o] Error 1
hsieh@hillsdale:~/OpenFOAM/hsieh-1.5-dev/solvers/attachDetachTJunction/addTJunctionModifier>
phsieh2005 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
valve motion skarp CFX 2 April 29, 2008 18:51
How to simulate valve with pressure BC? Luk FLUENT 8 June 20, 2006 08:06
Valve action Hrvoje Jasak (Hjasak) OpenFOAM Running, Solving & CFD 0 January 13, 2005 13:23
Terrible Mistake In Fluid Dynamics History Abhi Main CFD Forum 12 July 8, 2002 09:11
Valve Forces in CFdesign Mike Clapp Main CFD Forum 3 March 8, 2001 14:09


All times are GMT -4. The time now is 18:57.