CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Pre-Processing

laplacianFoam

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

Reply
 
LinkBack Thread Tools Display Modes
Old   June 9, 2013, 18:21
Default laplacianFoam
  #1
Member
 
Evangelos
Join Date: Sep 2011
Posts: 67
Rep Power: 5
Danath is on a distinguished road
Hello !

I made the following geometry and now i want to calculate the entropy production.

i want to set periodic boundaries at left, right

i make the geometry with desighmodeler and then i convert to openFoam using fluentMeshToFoam *.msh

i set the left boundary as inlet and the right as outlet .

Next step ?
Attached Images
File Type: png Στιγμιότυπο από 2013-06-10.png (20.0 KB, 12 views)

Last edited by Danath; June 10, 2013 at 12:53.
Danath is offline   Reply With Quote

Old   June 10, 2013, 12:54
Default
  #2
Member
 
Evangelos
Join Date: Sep 2011
Posts: 67
Rep Power: 5
Danath is on a distinguished road
if i set inlet and outlet as cyclic will work ?
Danath is offline   Reply With Quote

Old   June 10, 2013, 13:50
Default
  #3
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Greetings Evangelos,

Uhm... "entropy production"? I don't think you can do entropy calculations with just laplacianFoam... it's a very basic "temperature transport" solver, so there aren't any specific material properties in it.

Unless you want to calculate entropy purely based on temperature!? If so, do you have an equation to solve this relation between temperature and entropy?

As for the periodic boundaries, it depends on the exact nature of what you want to do. Because "Cyclic" boundaries are usually just cyclic: they sort-of enable matter teleportation from one patch to the other.

If you provide a bit more description of the kind of simulation you want to perform, it'll be easier for people to help you.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 10, 2013, 14:55
Default
  #4
Member
 
Evangelos
Join Date: Sep 2011
Posts: 67
Rep Power: 5
Danath is on a distinguished road
Hello !
Forget entropy production and laplacianFoam
At first i want to make periodic boundaries for inlet and outlet
so i modify boundary,P and U (see pixtures)

but when i try to run for example icofoam i find errors

Create time

Create mesh for time = 0

Reading transportProperties

Reading field p

Reading field U



--> FOAM FATAL IO ERROR:
Cannot find patchField entry for cyclic symmetry1
Is your field uptodate with split cyclics?
Run foamUpgradeCyclics to convert mesh and fields to split cyclics.

file: /home/danath/OpenFOAM/danath-2.1.0/run/tutorials/test/0/U::boundaryField from line 25 to line 40.

From function GeometricField<Type, PatchField, GeoMesh>::
GeometricBoundaryField::GeometricBoundaryField
(
const BoundaryMesh&,
const DimensionedField<Type, GeoMesh>&,
const dictionary&
)
in file /home/opencfd/OpenFOAM/OpenFOAM-2.1.0/src/OpenFOAM/lnInclude/GeometricBoundaryField.C at line 271.

FOAM exiting

When i type foamUpgradeCyclics


Create time

Reading boundary from "/home/danath/OpenFOAM/danath-2.1.0/run/tutorials/test/constant/polyMesh/boundary"
Detected 0 old cyclics.

No changes made to boundary file.

Time: 0
Loading field p
No changes made to field p

Loading field U
No changes made to field U


what should i do ? i am very confused ?
Attached Images
File Type: jpg Στιγμιότυπο από 2013-06-10.jpg (37.1 KB, 9 views)
Danath is offline   Reply With Quote

Old   June 10, 2013, 15:00
Default
  #5
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Evangelos,

Instead of editing the "boundary" file directly, use createPatch instead: http://openfoamwiki.net/index.php/CreatePatch - you should find some more ideas on this topic on that page.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 10, 2013, 15:03
Default
  #6
Member
 
Evangelos
Join Date: Sep 2011
Posts: 67
Rep Power: 5
Danath is on a distinguished road
also for P and U
Attached Images
File Type: jpg Στιγμιότυπο από 2013-06-10.jpg (33.6 KB, 9 views)
Danath is offline   Reply With Quote

Old   June 10, 2013, 15:04
Default
  #7
Member
 
Evangelos
Join Date: Sep 2011
Posts: 67
Rep Power: 5
Danath is on a distinguished road
thanks a lot !
Danath is offline   Reply With Quote

Old   June 14, 2013, 06:07
Default
  #8
Member
 
Evangelos
Join Date: Sep 2011
Posts: 67
Rep Power: 5
Danath is on a distinguished road
Hello ! Finally i create periodic boundaries

I figured the diffusion and now i want to calculate the entropy production .

I have the equation !

can somebody help me ?
Danath is offline   Reply With Quote

Old   June 16, 2013, 12:09
Default
  #9
Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 8,488
Blog Entries: 34
Rep Power: 86
wyldckat is just really nicewyldckat is just really nicewyldckat is just really nicewyldckat is just really nice
Hi Evangelos,

Sorry, but I'll have to be quick. Here are the steps I suggest that you follow:
  1. Do this tutorial first, so that you can learn the basics of modifying a solver: http://openfoamwiki.net/index.php/Ho...ure_to_icoFoam
  2. Then read the following post: adding "h" field to sonicFoam post #11 - study those instructions and adapt to the calculation you want to perform.
    • Keep in mind that the file "eEqn.H" does not exist in your case, but from the information you learn from the previous tutorial, you should be able to figure out where to place the equation for calculating the entropy production.
Beyond this, it probably depends on the equation you have got.

Best regards,
Bruno
wyldckat is offline   Reply With Quote

Old   June 17, 2013, 04:56
Default
  #10
Member
 
Evangelos
Join Date: Sep 2011
Posts: 67
Rep Power: 5
Danath is on a distinguished road
thanks a lot !
Danath is offline   Reply With Quote

Old   July 14, 2013, 08:00
Default
  #11
Member
 
Join Date: Jun 2011
Posts: 65
Rep Power: 6
maalan is on a distinguished road
Hi there!!

I am interested in modifying the laplacianFoam application. Once done the tutorials recommended, I would like to create my application to solve the laplace's equation in a domain (laplacian (phi) = 0). How I should proceed?? I have noticed the laplacian function in laplacianFoam.C has 2 inputs and I have just one scalar function, phi.

Thanks a lot!!
maalan is offline   Reply With Quote

Reply

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
laplacianFoam run-time error industrial0503 OpenFOAM Running, Solving & CFD 2 June 6, 2012 14:16
Add temperature-varying diffusivity in laplacianFoam tianyikillua OpenFOAM Running, Solving & CFD 0 March 28, 2012 17:00
Serious error in calculating gradT (laplacianFoam) doubtsincfd OpenFOAM Bugs 1 December 30, 2011 03:56
create own case for laplacianFoam rahulrp OpenFOAM Pre-Processing 6 April 8, 2010 00:03
laplacianfoam with solidification dakos OpenFOAM 1 November 14, 2009 07:15


All times are GMT -4. The time now is 21:33.