|
[Sponsors] |
December 12, 2011, 09:03 |
ComplexVectorField
|
#1 |
New Member
Piotr
Join Date: Dec 2011
Posts: 3
Rep Power: 15 |
Dear comunity,
I need to implement the possibility of calculating complex vector fields ( like for example the magnetic vector potential A) in OpenFOAM. I already recognized the ComplexVectorField.H library, which could be suitible for this issue. Is somebody able to help me or give me an advice how to realize a simple calculation like this: ComplexVectorField A; ( IOobject ( "A", runTime.timeName(), mesh, IOobject::MUST_READ, IOobject::AUTO_WRITE ), mesh ); solve(fvm::laplacian(A)); I offer my thanks in advance to all Members |
|
December 14, 2011, 05:52 |
|
#2 |
New Member
Piotr
Join Date: Dec 2011
Posts: 3
Rep Power: 15 |
I'm a little bit disappointed, that nobody wants to discuss this topic, but anyway i found in one previews threads an advice of henry to add a new geometric field. Had anybody allready tried something like this?
|
|
December 14, 2011, 17:45 |
|
#3 |
Senior Member
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 621
Rep Power: 0 |
@piotr,
This post probably isn't going to help, but maybe someone else will find it as well. I did find the post http://www.cfd-online.com/Forums/ope...ex-fields.html that asks nearly the same question so you could ask them if they ever figured out the issue. Also, I found the post http://www.cfd-online.com/Forums/ope...-equation.html that might be of interest to contribute to the discussion there. The answer to this might actually be that you need to define an entirely new vol*complex*Field type...and I'm sure that will take some time to implement. Lastly, some of these "complex" questions take time to think about and answer. Good luck. |
|
December 15, 2011, 10:55 |
@Dan
|
#4 |
New Member
Piotr
Join Date: Dec 2011
Posts: 3
Rep Power: 15 |
Thank you very much for your reply and your advice.
I allready started to implement a volComplexVectorField class and I was able recompile OpenFoam with this modification. But as I have written a solver using this new Field, I recieved some errors concerning fvMatrix files. I will try to solve this problems and keep you informed if I succeed. |
|
November 27, 2013, 06:03 |
|
#5 |
New Member
Join Date: Apr 2013
Posts: 24
Rep Power: 13 |
I know that this is already a long time ago, but Induction, did you, or anybody else already implemented a "volComplexField" Function?
I need to solve for the complex Poission Equation for AC fields and need to solve for a complex scalar volume field |
|
February 16, 2015, 04:31 |
|
#6 |
Member
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 58
Rep Power: 12 |
Did anyone ever have any success with this?
I want to solve the Laplace equation for conduction of AC current using phasors in OpenFOAM. |
|
Tags |
complex number |
|
|