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

Adding source term to u eq

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

Like Tree3Likes

Reply
 
LinkBack Thread Tools Display Modes
Old   March 19, 2009, 05:07
Default
  #21
Super Moderator
 
Mattijs Janssens
Join Date: Mar 2009
Posts: 1,416
Rep Power: 16
mattijs is on a distinguished road
programmers guide : Sf is face area vectors (Table 2.1), & is inner product (Table 1.2)
mattijs is offline   Reply With Quote

Old   March 19, 2010, 14:38
Default
  #22
New Member
 
Alton Luder III
Join Date: Oct 2009
Location: Michigan
Posts: 22
Rep Power: 7
sleepdeprivation is on a distinguished road
See http://www.tfd.chalmers.se/~hani/kur...7/rhiechow.pdf

U = rUA*UEqn.H(); isn't U, its half the update to U. U is used as a storage location
U-=rUA*fvc::grad(p); completes the update to U
so in total U = rUA*UEqn.H() - rUA*fvc::grad(p); but you have to find pressure first
sleepdeprivation is offline   Reply With Quote

Old   November 30, 2010, 12:58
Default
  #23
Member
 
George Pichurov
Join Date: Jul 2010
Posts: 39
Rep Power: 7
jorkolino is on a distinguished road
Quote:
Originally Posted by alberto View Post
You're right. Just shorter:

volScalarField myVectorField("myVectorField", myVector & mesh.C());

Regards,
Alberto
What shall I put instead of myVector? The program complains that transportProperties is not defined in this scope, so I need to set myVector here, directly.

regards
jorkolino is offline   Reply With Quote

Old   September 22, 2014, 10:24
Post add source term to momentum
  #24
Member
 
arash mahboubi
Join Date: Jun 2013
Location: Iran
Posts: 37
Rep Power: 4
arashfluid is on a distinguished road
Send a message via Yahoo to arashfluid
Hi,
I have added a source term to the momentum equation in foam-extend-3.1 FSI solver and encountered the following error:


/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::Fy() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::E() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::F() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::xx() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::yy() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::Ey() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::Fx() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::centers() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::sw() const'
/home/arash/foam/arash-3.1/lib/linux64GccDPOpt/libfluidStructureInteraction.so: undefined reference to `Foam::flowModels::icoFlow::Ex() const'
collect2: ld returned 1 exit status
make: *** [/home/arash/foam/arash-3.1/applications/bin/linux64GccDPOpt/fsiFoam] Error 1


what's problem?
arashfluid 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Adding Source term of a new field at the inlet vatant OpenFOAM Running, Solving & CFD 0 October 14, 2006 15:42
Adding Source term of a new field at the inlet vatant OpenFOAM Running, Solving & CFD 0 October 14, 2006 15:39
Adding a momentum source term segersson OpenFOAM Running, Solving & CFD 5 March 3, 2006 00:06
Adding a source term to continuity eqn(UDF) Sebeci FLUENT 0 April 20, 2003 03:12
adding source term confusion tedmcc CFX 4 September 27, 2001 05:05


All times are GMT -4. The time now is 07:09.