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

How to solve this coefficient form PDE in OpenFOAM?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 16, 2020, 02:47
Default How to solve this coefficient form PDE in OpenFOAM?
  #1
New Member
 
Join Date: Jan 2020
Posts: 2
Rep Power: 0
lupe123 is on a distinguished road
Hi all,

I am new to working with OpenFOAM and am trying to recreate a COMSOL solution for a coefficient form PDE with OpenFOAM.

The equation is:

Code:
div(gamma-grad(u))==0
where u is a scalar that depends on x,y,z and gamma is a constant vector.

I have looked through the existing solvers in OpenFOAM, but could not find one that fits this equation.

So my question is: Can this equation be solved in OpenFOAM with an existing solver or would I have to implement a new solver for this?

Regards,
Lukas
lupe123 is offline   Reply With Quote

Old   January 16, 2020, 05:48
Default
  #2
Senior Member
 
Santiago Lopez Castano
Join Date: Nov 2012
Posts: 354
Rep Power: 15
Santiago is on a distinguished road
Quote:
Originally Posted by lupe123 View Post
Hi all,

I am new to working with OpenFOAM and am trying to recreate a COMSOL solution for a coefficient form PDE with OpenFOAM.

The equation is:

Code:
div(gamma-grad(u))==0
where u is a scalar that depends on x,y,z and gamma is a constant vector.

I have looked through the existing solvers in OpenFOAM, but could not find one that fits this equation.

So my question is: Can this equation be solved in OpenFOAM with an existing solver or would I have to implement a new solver for this?

Regards,
Lukas
If gamma is a constant vector, Wouldn't your PDE reduce just to -div(grad(u)) = 0?
Or did you meant gamma = gamma(x,y,z) constant?
Santiago is offline   Reply With Quote

Old   January 16, 2020, 07:16
Default
  #3
New Member
 
Join Date: Jan 2020
Posts: 2
Rep Power: 0
lupe123 is on a distinguished road
Hi Santiago,


Thanks for the reply.



I meant gamma = gamma(x,y,z) constant. In COMSOL this is called conservative flux source.
lupe123 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
OpenFOAM v3.0.1 Training, London, Houston, Berlin, Jan-Mar 2016 cfd.direct OpenFOAM Announcements from Other Sources 0 January 5, 2016 03:18
OpenFOAM Training, London, Chicago, Munich, Sep-Oct 2015 cfd.direct OpenFOAM Announcements from Other Sources 2 August 31, 2015 13:36
Drag Coefficient for Ellipse Form (2D) Ketut Utama Main CFD Forum 8 December 11, 2014 11:03
Modified OpenFOAM Forum Structure and New Mailing-List pete Site News & Announcements 0 June 29, 2009 05:56
Can I use OpenFOAM to solve unsteady diffusion problem yongshenglian OpenFOAM Running, Solving & CFD 1 September 17, 2008 12:03


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