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

Procedure for modifying a solver: Beginner's Question

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

Like Tree3Likes
  • 1 Post By tzaht
  • 2 Post By floquation

Reply
 
LinkBack Thread Tools Display Modes
Old   June 9, 2017, 06:24
Default Procedure for modifying a solver: Beginner's Question
  #1
New Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 3
Rep Power: 3
tzaht is on a distinguished road
Hi,

I am trying to learn the framework of OpenFoam so that I can edit the equations that are being solved.

As a starting point for my learning, I am trying to edit the laplacianFoam solver to add a source term. If I succeed in adding a large source term, the basic/laplacianFoam/flange should blow up, proving I'm editing the correct file.

I have edited the file in:

applications/solvers/basic/laplacianFoam/laplacianFoam.C

However, this does not change the solution. Anybody able to shed some light or point me to a good guide on this?

Regards.
Светлана likes this.
tzaht is offline   Reply With Quote

Old   June 9, 2017, 06:34
Default
  #2
Senior Member
 
floquation's Avatar
 
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 245
Rep Power: 13
floquation will become famous soon enough
Did you compile your changes?

Try this tutorial:
https://github.com/UnnamedMoose/Basi...mmingTutorials
floquation is offline   Reply With Quote

Old   June 15, 2017, 11:41
Default
  #3
Super Moderator
 
Tobi's Avatar
 
Tobias Holzmann
Join Date: Oct 2010
Location: Leoben (Austria)
Posts: 1,946
Blog Entries: 6
Rep Power: 33
Tobi has a spectacular aura aboutTobi has a spectacular aura about
Send a message via ICQ to Tobi Send a message via Skype™ to Tobi
Check out my screencasts for further I information. But I guess floquation gave the correct answer

Sent from my HTC One mini using CFD Online Forum mobile app
__________________
Keep foaming,
Tobias Holzmann
Tobi is offline   Reply With Quote

Old   June 15, 2017, 22:00
Default
  #4
New Member
 
Tony Zahtila
Join Date: Mar 2016
Posts: 3
Rep Power: 3
tzaht is on a distinguished road
Thanks floquation and Tobias.

Yes, I simply wasn't compiling. :facepalm: I'm a bit embarrassed to waste your time on something so simple.

I appreciate your help, I am used to the MATLAB environment where you don't compile.
tzaht 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
Working directory via command line Luiz CFX 4 March 6, 2011 21:02
Question abt. the Riemann analytic solver jinwon Main CFD Forum 0 July 16, 2007 14:11
A beginners question Pst Main CFD Forum 2 February 19, 2006 04:33
Poisson Solver question Suresh Main CFD Forum 3 August 12, 2005 04:37
A Question on the Dynamic procedure in LES dragon Main CFD Forum 1 April 28, 2005 15:11


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