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

Creating/Combining Solvers for Electrohydrodynamics

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By Aicharem

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 25, 2016, 11:35
Default Creating/Combining Solvers for Electrohydrodynamics
  #1
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
Aicharem is on a distinguished road
Hi All,

I am trying to create an OpenFOAM model for an electrohydrodynamic thruster. I am using the work performed by AA Martins [1] as a base for the model, it involves solving Navier Stoke's equation, the electric field equations and the charge transport equations in three separate modules.

My questions is this: Is it best to modify the existing simpleFoam solver by adding in the electrostaticFoam module, and then manually insert the charge transport equation? I only need the steady state solution.

I have seen the tutorial for adding temperature to the icoFoam solver and wonder if the electric field strength could be added in a similar fashion.

I'm really struggling with this so any advice would be really appreciated!

Thanks
A

[1] Modeling of an EHD corona flow in nitrogen gas using an asymmetric capacitor for propulsion: http://arxiv.org/ftp/arxiv/papers/1008/1008.0552.pdf
JR22 likes this.
Aicharem is offline   Reply With Quote

Old   February 29, 2016, 04:08
Default
  #2
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
You can add additional fields and equations similar to what is shown in that tutorial to a solver. You will have to figure out if you need to couple these additional equations inside a (pseudo-) time step to archieve convergence and stability. Relaxation might also be needed, depending on the modelled system.
chriss85 is offline   Reply With Quote

Old   March 10, 2016, 07:01
Default
  #3
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
Aicharem is on a distinguished road
Thanks for the pointers Chris, I have been working on doing this for a couple of weeks now, but I have hit a wall.

I have combined the electrostaticFoam with simpleFoam with a few modifications. The solver compiles successfully but when the case runs I get a "floating point exception (core dumped)" error.

I have attached the solver I am trying to run, I'll also post the case. It is a modified version of the airFoil2D tutorial case. If anyone has some time to look at it and see if I've made any obvious errors it's be a real help.

One of the things that I am unsure of is the modified UEqn.H, where I have added in a new term for the electrostatic force. The other thing that I haven't figured out is whether or not I need to include the d/dt terms since the solver is a steady state one.

Thanks
A
Attached Files
File Type: gz my_simpleFoam.tar.gz (186.6 KB, 31 views)
Aicharem is offline   Reply With Quote

Old   March 10, 2016, 07:10
Default
  #4
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
Aicharem is on a distinguished road
Here is the case I am trying to run.

The properties folder has the files that belong in the constant folder. I couldn't upload the entire constant folder as the polymesh folder within it is too big, however this is unchanged from the original case.

A
Attached Files
File Type: gz 0.tar.gz (858 Bytes, 16 views)
File Type: gz system.tar.gz (1.4 KB, 12 views)
File Type: gz properties.tar.gz (702 Bytes, 12 views)
Aicharem is offline   Reply With Quote

Old   March 11, 2016, 07:14
Default
  #5
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
Floating point exception is often caused by division by zero. Make sure none of your physical properties are completely zero. For example when I want to simulate a resistive material (laplacian(sigma, phi)=0), sigma must not be completely zero.
chriss85 is offline   Reply With Quote

Old   March 14, 2016, 13:30
Default
  #6
New Member
 
Join Date: Feb 2016
Posts: 10
Rep Power: 10
Aicharem is on a distinguished road
Thanks, I have checked over my physical properties and transport properties but I don't think these are the problem. None of them are zero, I have also tried moving them all into transportProperties (previously the electrostatic properties were defined in physicalProperties and rho and nu were defined in transport properties. This seems to have had no effect, positive or negative).

If you could provide any further ideas or guidance it would be hugely appreciated. I have to submit my project progress next week and so far I have extremely little to show for it....

Thanks,
A
Aicharem is offline   Reply With Quote

Old   March 15, 2016, 03:21
Default
  #7
Senior Member
 
Join Date: Oct 2013
Posts: 397
Rep Power: 18
chriss85 will become famous soon enough
You could try to use different equation solvers, sometimes this helps as well.
Oh and if you have a steady state solver you can just set the ddt schemes to steady (or steadyState?) in fvSolution.
chriss85 is offline   Reply With Quote

Reply


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


Similar Threads
Thread Thread Starter Forum Replies Last Post
Solid Mechanics Solvers added to OpenFOAM Extend bigphil OpenFOAM Announcements from Other Sources 26 October 12, 2017 04:01
Is there a difference between Riemann solvers and characteristic based solvers? linkamp Main CFD Forum 3 February 18, 2016 09:12
FSI solvers - best solvers steven123 OpenFOAM Running, Solving & CFD 0 July 8, 2014 10:26
Possible turbulence modelling bug in SRF solvers otm OpenFOAM Running, Solving & CFD 3 May 29, 2012 04:03
PHOENICS Solvers Hu Phoenics 0 June 28, 2002 07:37


All times are GMT -4. The time now is 23:50.