|
[Sponsors] |
September 22, 2021, 22:23 |
General Question about code developing
|
#1 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11 |
Hi everyone,
I have a general question about OF coding. Considering that I have started a simulation using OF. Then during running this case, I have changed the OF library and compiled it. So does it affect the running case with the previously compiled configuration? Cheers, Mohammad |
|
September 24, 2021, 10:11 |
|
#2 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11 |
Nobody interested in answering my question?
|
|
September 24, 2021, 12:20 |
|
#3 | |
Member
Rodrigo
Join Date: Mar 2010
Posts: 98
Rep Power: 16 |
Quote:
Being more pragmatic: In principle it shall not affect your already-running case. Of course, if you stop&resume it the system will make use of the new binaries. |
||
September 25, 2021, 03:40 |
|
#4 | |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11 |
Quote:
You was so specific indeed. I mean the already-running case. So in your opinion, making a change in library and compiling it doesn't affect that case. |
||
September 26, 2021, 02:06 |
|
#5 | |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Quote:
As guin wrote, it depends. I had systems in which changing a binary used by a simulation was causing the simulation stopping with a "BUS error", while on other systems it did not stop. However, it's never a good idea... |
||
September 26, 2021, 19:24 |
|
#6 |
Senior Member
mohammad
Join Date: Sep 2015
Posts: 274
Rep Power: 11 |
||
September 30, 2021, 06:39 |
|
#7 |
New Member
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 12 |
hello everybody
i wonder whether it is possible to run OF codes on a generic compiler (not through the TERMINAL determined by the official releases)? for example can i run the Cavity tutorial codes on CodeBlocks C++ compiler? i think if OF is a real open source code it must be possible! thanks in advance. |
|
September 30, 2021, 14:45 |
|
#8 | |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Quote:
|
||
October 30, 2021, 12:07 |
|
#9 |
New Member
Ali Baratian
Join Date: Oct 2013
Location: Kuhsangi, Mashhad, Iran
Posts: 22
Rep Power: 12 |
You mean it is possible for example to copy paste OF codes in a generic c++ compiler and run?
If that is! I am really wondered by that. |
|
October 31, 2021, 08:13 |
|
#10 | |
Senior Member
Francesco Del Citto
Join Date: Mar 2009
Location: Zürich Area, Switzerland
Posts: 237
Rep Power: 18 |
Quote:
No, I am not saying that. To be honest, I'm not sure I understood what you mean with that. What I am saying is that you can use different compilers to recompile the whole OpenFOAM package, including your custom libraries and applications. OpenFOAM is C++ code, although with a unique code style, but you cannot take just a solver source, it includes headers and imports lots of libraries from the openfoam source directories that must be recompiled as well. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
A general question on using UDF for defining reaction kinetics | Morijef | Fluent UDF and Scheme Programming | 0 | September 19, 2018 15:37 |
question about complete code of airfoil | batuning | Main CFD Forum | 0 | October 26, 2017 03:24 |
General question regarding convergence | raviramesh10 | CFD Freelancers | 0 | June 20, 2017 07:09 |
Debugging technics - CFD code developing | leo_NM | Main CFD Forum | 2 | June 9, 2016 11:22 |
general question | Madhukar Rapaka | FLUENT | 1 | June 28, 2006 08:03 |