CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > CD-adapco

HELP,ocean wave motion-inlet boundary?

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

Reply
 
LinkBack Thread Tools Display Modes
Old   January 27, 2005, 23:10
Default HELP,ocean wave motion-inlet boundary?
  #1
Blackhole
Guest
 
Posts: n/a
Dear Sirs,

In star-cd ,do scalar(1) represent the F function in VOF method? I am a new learner and trying to model ocean wave motion. When I run the problem,it always occured "solution Divergince /unstable" after running one step.I am confused whether the code is wrong?

In my problem,d=water depth, TW=(wave period) dY=cell height in y direction. wh=wave height. The free surface function :

y1= wh*cos(kwa*X-fht*TIME)/2

And now I paste my coding here!Can you tell me what's the matter? Looking forward to receive from you! Here is the codinginlet coding)

PARAMETER(TW=2.5)

PARAMETER(d=1.5)

PARAMETER(wh=1)

PARAMETER(pie=3.141)

PARAMETER(g=9.18)

PARAMETER(dY=0.3)

IF(IREG.EQ.1) THEN

kwa=2*pie/L

fht=2*pie/TW

fhw=pie*wh/TW

fhtw=d+wh*cos(kwa*X-fht*TIME)/2

fhtz=max(fhtw-Y,zero)/dY

fthz=min(fhtz,one)

If(fhtz.gt.small)Then

SCALAR(1)=fthz

U=fhw*cosh(kwa*Y)*cos(kwa*X-fht*TIME)/sinh(kwa*d)

V=fhw*sinh(kwa*Y)*sin(kwa*X-fht*TIME)/sinh(kwa*d)

W=0

ELSE

SCALAR(1)=0

U=0

V=0

ENDIF

ENDIF C-------------------------------------------------------------------------

WRITE(6,*) "*** BCDEFI called for boundary "

RETURN

END

  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


Similar Threads
Thread Thread Starter Forum Replies Last Post
motion of piston wave maker chandra sekhar b Main CFD Forum 0 October 31, 2008 08:06
Ocean wave generation & outlet setting- ship FSI lee CFX 0 November 8, 2007 23:10
Governing equations for non-linear wave motion Dr.K.Thiruvenkatasamy Main CFD Forum 1 June 1, 2006 06:33
Free Surface Flows / Ocean Waves / Far-field boundary conditions Sundar Prasad Main CFD Forum 5 May 4, 1999 10:25
Ocean Wave Model with FLOW3D Haryo Armono Main CFD Forum 0 January 28, 1999 14:11


All times are GMT -4. The time now is 06:33.