|
[Sponsors] |
Procedure for modifying a solver: Beginner's Question |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
June 9, 2017, 07:24 |
Procedure for modifying a solver: Beginner's Question
|
#1 |
Member
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
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. |
|
June 9, 2017, 07:34 |
|
#2 |
Senior Member
Kevin van As
Join Date: Sep 2014
Location: TU Delft, The Netherlands
Posts: 252
Rep Power: 21 |
Did you compile your changes?
Try this tutorial: https://github.com/UnnamedMoose/Basi...mmingTutorials |
|
June 15, 2017, 12:41 |
|
#3 |
Super Moderator
Tobias Holzmann
Join Date: Oct 2010
Location: Bad Wörishofen
Posts: 2,711
Blog Entries: 6
Rep Power: 52 |
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 |
|
June 15, 2017, 23:00 |
|
#4 |
Member
Tony Zahtila
Join Date: Mar 2016
Posts: 33
Rep Power: 10 |
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. |
|
|
|
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 15: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 05:37 |
A Question on the Dynamic procedure in LES | dragon | Main CFD Forum | 1 | April 28, 2005 16:11 |