CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Parallel Run Compatibility Issue of the Implementation to the Solver (https://www.cfd-online.com/Forums/openfoam-programming-development/244585-parallel-run-compatibility-issue-implementation-solver.html)

Battousai07 August 17, 2022 03:15

Parallel Run Compatibility Issue of the Implementation to the Solver
 
Hello All,
I have created my solver by introducing some additional variables and methods to calculate them to the solver "interPhaseChangeFoam". The solver works fine and gives me the satisfying output. However, the way that i implemented my code is not suitable to run on parallel. So i decided to modify my calculation to create a post processing tool instead off making the calculation on run time. Here what i needed to do:
1) After reconstructing the case, i need to reach values of each cell (U, P_rgh etc.)
2) I need to use values which were calculated during runtime and calculate my new variable (for example at time step 0.0001 newVelo[cellI] = 2*U[cellI])
3) I need my code loop through all the results, check some conditions and calculate my variables


I am kindly asking you whether is there a code template that i can use that loops through the calculated results.
Thanks in advance

klausb August 22, 2022 15:48

I suggest to check the capabilities of paraFOAM i.e. ParaView which is the standard post processing application, maybe it offers the functionality you need.


All times are GMT -4. The time now is 14:44.