CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Programming & Development

ComplexVectorField

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   December 12, 2011, 09:03
Default ComplexVectorField
  #1
New Member
 
Piotr
Join Date: Dec 2011
Posts: 3
Rep Power: 5
Induction is on a distinguished road
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
Induction is offline   Reply With Quote

Old   December 14, 2011, 05:52
Default
  #2
New Member
 
Piotr
Join Date: Dec 2011
Posts: 3
Rep Power: 5
Induction is on a distinguished road
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?
Induction is offline   Reply With Quote

Old   December 14, 2011, 17:45
Default
  #3
Senior Member
 
chegdan's Avatar
 
Daniel P. Combest
Join Date: Mar 2009
Location: St. Louis, USA
Posts: 548
Rep Power: 18
chegdan will become famous soon enough
@piotr,

This post probably isn't going to help, but maybe someone else will find it as well. I did find the post

Complex Fields

that asks nearly the same question so you could ask them if they ever figured out the issue. Also, I found the post

Implementation of Schroedinger's equation

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.
__________________
Dan

Find me on twitter @dancombest and LinkedIn
chegdan is offline   Reply With Quote

Old   December 15, 2011, 10:55
Default @Dan
  #4
New Member
 
Piotr
Join Date: Dec 2011
Posts: 3
Rep Power: 5
Induction is on a distinguished road
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.
Induction is offline   Reply With Quote

Old   November 27, 2013, 06:03
Default
  #5
New Member
 
Join Date: Apr 2013
Posts: 24
Rep Power: 4
GPesch is on a distinguished road
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
GPesch is offline   Reply With Quote

Old   February 16, 2015, 04:31
Default
  #6
Member
 
Nicole Andrew
Join Date: Sep 2014
Location: Pretoria, South Africa
Posts: 36
Rep Power: 2
Nicole is on a distinguished road
Did anyone ever have any success with this?

I want to solve the Laplace equation for conduction of AC current using phasors in OpenFOAM.
Nicole is offline   Reply With Quote

Reply

Tags
complex number

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 19:48.