|
[Sponsors] |
June 20, 2017, 11:05 |
Complex geometric fields
|
#1 |
Member
Join Date: Jun 2015
Posts: 30
Rep Power: 11 |
Hi ,
It’s been years since the last comment (from Henrik) I’ve seen on GeometricFields of complex numbers: OpenFoam and complex numbers I think it’s about time that this functionality is added to OpenFOAM, since there are many physical problems which can be solved in frequency domain such as acoustics which require performing differential operations on complex variables and solving for complex GeometricFields. Henry mentioned that this extension is not a great deal of work, but I’m afraid it is for someone which does not have years of experience with C++ and OpenFOAM. I would like to look into this but need some guidance. Since we already have the complexVectorField, then questions is how to put it as a parent class for the geometricField<Type>. Or do I have to define an entire set of classes leading to “geometricComplexField<Type>”? Also do I need to define how differential (fvm or fvc of div, grad) are carried out for complex numbers? Also the iterative solvers, I hope I don’t need to make modifications there, or do I? Thanks, Ali Last edited by Ali Blues; June 20, 2017 at 12:12. |
|
January 1, 2018, 18:51 |
|
#2 | |
Retired Super Moderator
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,981
Blog Entries: 45
Rep Power: 128 |
Quote:
Code:
geometricField<complex> geometricField<complexVector> Start looking in the following folder for ideas: https://github.com/OpenFOAM/OpenFOAM...eometricFields I believe you need to replicate whatever is done with "GeometricScalarField" with the respective "GeometricComplexField" alternative. After that, you would have to look into this folder: https://github.com/OpenFOAM/OpenFOAM...e/finiteVolume But from what I can quickly see, it seems like you don't need to worry about this part, because C++ templates will create the respective instances when needed.
__________________
|
||
Tags |
complex variable, geometric, openfoam |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Complex Fields | suniljain | OpenFOAM | 1 | September 12, 2019 09:09 |
Complex scalar fields | JamR | OpenFOAM Programming & Development | 0 | July 15, 2013 12:29 |
a reconstructPar issue | immortality | OpenFOAM Post-Processing | 8 | June 16, 2013 12:25 |
an odd(at least for me!) reconstructPar error on a field | immortality | OpenFOAM Running, Solving & CFD | 3 | June 3, 2013 23:36 |
How to update polyPatchbs localPoints | liu | OpenFOAM Running, Solving & CFD | 6 | December 30, 2005 18:27 |