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

EHDFoam

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

Like Tree23Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   July 24, 2012, 14:57
Default EHDFoam
  #1
New Member
 
Nicolao
Join Date: Jul 2012
Location: São Paulo, Brazil
Posts: 13
Rep Power: 14
Nicolao is on a distinguished road
Hey everyone,

I'm trying to create a solver for electrohydrodynamics in OpenFoam. I've found one solver at this link

http://openfoamwiki.net/index.php/Co...ectromagnetics

but I'm having some problems about it.

The charge density in the case (EHDdroplet) is not calculated. And I don't understand why the electric force has been set up at the surface (I guess that it is at the surface) at the right side of the N-S equation.

I'm wondering if there is anyone working on a solver for EHD cases that could help me with it.

Just in case, I'm working with atomization process.

Thanks for any help!!
Nicolao is offline   Reply With Quote

Old   November 16, 2012, 16:33
Default
  #2
New Member
 
David
Join Date: May 2012
Location: Canada
Posts: 12
Rep Power: 14
salehda is on a distinguished road
Hi Nicola ,

any updates about these ?? I am trying to use it too , but I am stuck with compiling it

Thanks
David
salehda is offline   Reply With Quote

Old   November 20, 2012, 05:12
Default Working on it & almost there...
  #3
New Member
 
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14
Ivooo is on a distinguished road
Hi,

I am currently working on an extended version of the EHDFoam model, using the version posted on the wiki as a base, but also using the JCP article of Lopez Herrera et al. [1] as a guide. This paper outlines how a charge density is generated on the interface between two fluids due to an electric field. As such, I am now able to simulate both dielectric and conducting fluids (any combination of the two), and I was able to verify most cases outlined in the paper. I'll put it on the wiki as soon as we have everything worked out in detail, but I am willing to collaborate with the last steps of development. Let me know if you're interested.

[1] Journal of Computational Physics 230:1939-1955, 2011
Ivooo is offline   Reply With Quote

Old   November 20, 2012, 05:15
Default
  #4
New Member
 
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14
Ivooo is on a distinguished road
Quote:
Originally Posted by Nicolao View Post
Hey everyone,

I'm trying to create a solver for electrohydrodynamics in OpenFoam. I've found one solver at this link

http://openfoamwiki.net/index.php/Co...ectromagnetics

but I'm having some problems about it.

The charge density in the case (EHDdroplet) is not calculated. And I don't understand why the electric force has been set up at the surface (I guess that it is at the surface) at the right side of the N-S equation.

I'm wondering if there is anyone working on a solver for EHD cases that could help me with it.

Just in case, I'm working with atomization process.

Thanks for any help!!
Just to answer your question, the charge density in the original EHDFoam model is not calculated, it is only transported so you'll have to initialise the charge densities e.g. using setFields. The electric force is solved explicitly (RHS), but I dont see a problem in that; it is the normal way of incorporating an additional force in the NS eqs.
Ivooo is offline   Reply With Quote

Old   November 20, 2012, 05:20
Default
  #5
New Member
 
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14
Ivooo is on a distinguished road
Quote:
Originally Posted by salehda View Post
Hi Nicola ,

any updates about these ?? I am trying to use it too , but I am stuck with compiling it

Thanks
David
I'm not sure what goes wrong in your case, but the EHDFoam has been written using OF1.5. I can't tell what happens if you compile it with a more recent version of OF, I started off by updating EHDFoam (both the library and the executable) to match the 2.1 version of OF.
Ivooo is offline   Reply With Quote

Old   December 4, 2012, 12:55
Default
  #6
New Member
 
Nicolao
Join Date: Jul 2012
Location: São Paulo, Brazil
Posts: 13
Rep Power: 14
Nicolao is on a distinguished road
Quote:
Originally Posted by Ivooo View Post
Hi,

I am currently working on an extended version of the EHDFoam model, using the version posted on the wiki as a base, but also using the JCP article of Lopez Herrera et al. [1] as a guide. This paper outlines how a charge density is generated on the interface between two fluids due to an electric field. As such, I am now able to simulate both dielectric and conducting fluids (any combination of the two), and I was able to verify most cases outlined in the paper. I'll put it on the wiki as soon as we have everything worked out in detail, but I am willing to collaborate with the last steps of development. Let me know if you're interested.

[1] Journal of Computational Physics 230:1939-1955, 2011

Hey Ivooo, I also used the paper from Herrera as a base. And my solver is actually working quite fine. The fact is that I didn't implemented the equations from 13 to 18 (from the paper) on the solver. I want to know if it is necessary to put them on the solver, or if they are inherent to the solution of the Maxwell's equations.
(I don't know if that was clear enough...)

If you could help me on implementing them (equations 13 to 18) it would be of great help.

About the charge density, I initialized it on the 0 folder, and set as 0 as initial condition. And it worked. It appears only at the interface and the electric force too.

Thanks!
Nicolao is offline   Reply With Quote

Old   January 23, 2013, 13:24
Default Any success?
  #7
New Member
 
Rob Bacon
Join Date: Jul 2012
Posts: 2
Rep Power: 0
Rob Bacon is on a distinguished road
Hi, I'm looking to use a working EHD solver for analysis of Taylor cone ejection and I was wondering if either of your solvers is at a working stage yet? If so I'd be very interested in 'beta testing' it for you!
Rob Bacon is offline   Reply With Quote

Old   February 5, 2013, 09:37
Default
  #8
New Member
 
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14
Ivooo is on a distinguished road
Quote:
Originally Posted by Rob Bacon View Post
Hi, I'm looking to use a working EHD solver for analysis of Taylor cone ejection and I was wondering if either of your solvers is at a working stage yet? If so I'd be very interested in 'beta testing' it for you!
Sorry for the late response. I'll publish the code as soon as I have permission from my supervisors/sponsors (I will get that permission, shouldnt worry about it). Our intention is to publish it including several validation and example cases so people can start using it right away.
mezhu likes this.
Ivooo is offline   Reply With Quote

Old   February 16, 2013, 20:00
Default
  #9
New Member
 
Rob Bacon
Join Date: Jul 2012
Posts: 2
Rep Power: 0
Rob Bacon is on a distinguished road
Hi Ivooo, that would be great, looking forward to trying it!
Rob Bacon is offline   Reply With Quote

Old   July 20, 2013, 08:46
Default
  #10
Senior Member
 
Mojtaba.a's Avatar
 
Mojtaba Amiraslanpour
Join Date: Jun 2011
Location: Tampa, US
Posts: 308
Rep Power: 16
Mojtaba.a is on a distinguished road
Send a message via Skype™ to Mojtaba.a
Quote:
Originally Posted by Ivooo View Post
Sorry for the late response. I'll publish the code as soon as I have permission from my supervisors/sponsors (I will get that permission, shouldnt worry about it). Our intention is to publish it including several validation and example cases so people can start using it right away.
Dear Ivo,
have you got permission from you supervisor to publish the code?
I really look forward to it.

Thank you
__________________
Learn OpenFOAM in Persian
SFO (StarCCM+ FLUENT OpenFOAM) Project Team Member
Complex Heat & Flow Simulation Research Group
If you can't explain it simply, you don't understand it well enough. "Richard Feynman"
Mojtaba.a is offline   Reply With Quote

Old   August 2, 2013, 08:49
Default
  #11
New Member
 
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14
Ivooo is on a distinguished road
Quote:
Originally Posted by Mojtaba.a View Post
Dear Ivo,
have you got permission from you supervisor to publish the code?
I really look forward to it.

Thank you
Hi,

We are preparing an article about it now, which also involves a multi-region solver for EHD. If we're confident that the paper gets accepted I can publish it.


Cheers
Ivooo is offline   Reply With Quote

Old   February 3, 2014, 16:03
Default
  #12
New Member
 
Christian
Join Date: Jan 2014
Posts: 6
Rep Power: 12
chirs is on a distinguished road
Hi David,

Currently, I am trying to set up EHD solver in openFOAM 2.2.2. but I can't get compile it, please could you give some advise; how to do it? how did you do it ?

Thanks in advance,
Christian
chirs is offline   Reply With Quote

Old   May 29, 2014, 13:44
Default
  #13
New Member
 
David
Join Date: May 2012
Location: Canada
Posts: 12
Rep Power: 14
salehda is on a distinguished road
Hi Chris,

I did not compile it , I left openFOAM and then I am getting back to it. I tried compiling a new library o include the two phase mixture, every thing goes well until it gives me an error

In file included from EHDTwoPhaseMixture/EHDtwoPhaseMixture.C:27:0:
EHDTwoPhaseMixture/EHDtwoPhaseMixture.H:190:39: error: conflicting return type specified for ‘virtual const volScalarField& Foam::EHDtwoPhaseMixture::nu() const’
../EHDincompressible/transportModel/transportModel.H:84:37: error: overriding ‘virtual Foam::tmp<Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh> > Foam::transportModel::nu() const’
make: *** [Make/linux64GccDPOpt/EHDtwoPhaseMixture.o] Error 1

Any idea, how to solve this ??
salehda is offline   Reply With Quote

Old   June 4, 2014, 06:58
Default
  #14
New Member
 
Christian
Join Date: Jan 2014
Posts: 6
Rep Power: 12
chirs is on a distinguished road
Hi David,
Sorry for my late answer, I fix that problem as follows:
changing the 190 line for:
//- Return the kinematic laminar viscosity
virtual tmp<volScalarField& nu() const
{
return nu_;
}
chirs is offline   Reply With Quote

Old   June 6, 2014, 12:58
Default
  #15
New Member
 
David
Join Date: May 2012
Location: Canada
Posts: 12
Rep Power: 14
salehda is on a distinguished road
Thanks Chris,

I fixed this but now I am getting this ,
gammaEqnSubCycle.H: In function ‘int main(int, char**)’:
gammaEqnSubCycle.H:3:15: error: ‘piso’ was not declared in this scope
In file included from gammaEqnSubCycle.H:22:0,
from EHDFoam.C:75:
gammaEqn.H:6:26: error: ‘class Foam::interfaceProperties’ has no member named ‘cGamma’
In file included from gammaEqnSubCycle.H:30:0,
from EHDFoam.C:75:
gammaEqn.H:6:26: error: ‘class Foam::interfaceProperties’ has no member named ‘cGamma’
/opt/openfoam222/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/opt/openfoam222/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable]
/opt/openfoam222/src/finiteVolume/lnInclude/readPISOControls.H:3:15: warning: unused variable ‘nOuterCorr’ [-Wunused-variable]
/opt/openfoam222/src/finiteVolume/lnInclude/readPISOControls.H:6:15: warning: unused variable ‘nCorr’ [-Wunused-variable]
/opt/openfoam222/src/finiteVolume/lnInclude/readPISOControls.H:12:16: warning: unused variable ‘momentumPredictor’ [-Wunused-variable]
/opt/openfoam222/src/finiteVolume/lnInclude/readPISOControls.H:15:16: warning: unused variable ‘transonic’ [-Wunused-variable]
/opt/openfoam222/src/finiteVolume/lnInclude/readTimeControls.H:38:8: warning: unused variable ‘maxDeltaT’ [-Wunused-variable]
make: *** [Make/linux64GccDPOpt/EHDFoam.o] Error 1

It seems that all the variable names has changed from the different versions , Can you please help me with that or can you upload the updated code if you were able to compile it.

Thank you
salehda is offline   Reply With Quote

Old   August 9, 2014, 14:29
Default
  #16
New Member
 
David
Join Date: May 2012
Location: Canada
Posts: 12
Rep Power: 14
salehda is on a distinguished road
Quote:
Originally Posted by Ivooo View Post
Hi,

We are preparing an article about it now, which also involves a multi-region solver for EHD. If we're confident that the paper gets accepted I can publish it.


Cheers
Hi Ivoo,

Any updates on that ?
salehda is offline   Reply With Quote

Old   August 11, 2014, 07:16
Default
  #17
New Member
 
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14
Ivooo is on a distinguished road
Quote:
Originally Posted by salehda View Post
Hi Ivoo,

Any updates on that ?
Yes, the paper has been submitted and is currently under review. It has been about a month now, so I guess I will hear something soon.
chirs likes this.
Ivooo is offline   Reply With Quote

Old   April 20, 2015, 14:16
Default
  #18
New Member
 
Christian
Join Date: Jan 2014
Posts: 6
Rep Power: 12
chirs is on a distinguished road
hi Ivo,
I was reading your conference paper "An OpenFOAM-based electro-hydrodynamical model", it is interesting, I am working in something similar, but I could not set up the validation case for charge relaxation, please could you give me an idea how to set up it?

Best regards,

Chris
chirs is offline   Reply With Quote

Old   April 21, 2015, 10:28
Default
  #19
New Member
 
Ivo
Join Date: Feb 2012
Posts: 26
Rep Power: 14
Ivooo is on a distinguished road
Quote:
Originally Posted by chirs View Post
hi Ivo,
I was reading your conference paper "An OpenFOAM-based electro-hydrodynamical model", it is interesting, I am working in something similar, but I could not set up the validation case for charge relaxation, please could you give me an idea how to set up it?

Best regards,

Chris
If I recall correctly, I have used the funkySetFields in order to init a Gaussian charge bump. Perhaps that's where you are stuck?

Anyway, perhaps it is coincidence but today I received notification that our article on interFoamEHD including multi-region is available online. That means I can also upload the code and validation cases I have used.

I am currently digging through the files (I want the package with solvers, utilities, scripts and cases to be clean and tested once more). I will get back to this soon.
Ivooo is offline   Reply With Quote

Old   April 21, 2015, 11:01
Default
  #20
New Member
 
Christian
Join Date: Jan 2014
Posts: 6
Rep Power: 12
chirs is on a distinguished road
Quote:
Originally Posted by Ivooo View Post
If I recall correctly, I have used the funkySetFields in order to init a Gaussian charge bump. Perhaps that's where you are stuck?

Anyway, perhaps it is coincidence but today I received notification that our article on interFoamEHD including multi-region is available online. That means I can also upload the code and validation cases I have used.

I am currently digging through the files (I want the package with solvers, utilities, scripts and cases to be clean and tested once more). I will get back to this soon.
Ivo, thanks to answer. Yes, the Gaussian charge bump is the problem. I will try your suggestion.
Congratulations for your paper, it will be great if you can upload the code and the validations.

Best Regards,

Christian Narvaez
chirs is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
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 Off
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 03:57.