|
[Sponsors] |
July 17, 2011, 13:06 |
jumpCyclic
|
#1 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
Is there any tutorial for jumpCyclic boundary condition?
|
|
July 18, 2011, 03:18 |
|
#2 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
please dont create the same topic several times! and usually before make a new thread you should search in forum at first, you will find many new thread about it!
you can search about "jumpCyclic" and "fan" boundary condition, you will find examples and threads about it |
|
July 18, 2011, 03:46 |
|
#3 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
I did read the previous posts. Fan BC is available for pressure. I want to implement jumpCyclic BC for variable "T" in laplacianFoam. No previous post is telling clearly about how to implement this BC. Which tutorial has this boundary condition implemented is also not mentioned. Last post on jumpCyclic (not fan BC) was 2 years back.
|
|
July 18, 2011, 04:58 |
|
#4 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
i guess
you can use the same approach for temperature fan BC supports scalar jump, you just need to define ur temperature jump which is difference between in (Tinlet - Toutlet) as value of f in fan BC |
|
July 18, 2011, 15:02 |
|
#5 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
I tried for T, but it is not working. It required value of phi. I even edited the fanFvPatchFields.C and removed the phi part (the jump is calculated as maximum of specified and 0.5U*U, U is calculated using phi). But I am still getting the error:
--> FOAM FATAL ERROR: request for surfaceScalarField phi from objectRegistry region0 failed available objects of type surfaceScalarField are 4 ( DT differenceFactors_ weightingFactors (DT*magSf) ) From function objectRegistry::lookupObject<Type>(const word&) const in file /home/opencfd/OpenFOAM/OpenFOAM-1.7.x/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 139. FOAM aborting |
|
July 18, 2011, 18:28 |
|
#7 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
Its working. I was using the boundary condition for fan as:
type fan; patchType cyclic; f List<scalar> 2 (10.0 -1.0); value uniform 0; But I have no idea what that -1.0 stands for. I am not good at OF programming. But the BC you have suggested works! Thank you so much! |
|
July 18, 2011, 18:50 |
|
#8 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
One last question.
Is it possible to implement non uniform pressure jump, say as a list of values for the cell centers or node points on the patch? Thank you. |
|
July 18, 2011, 23:10 |
|
#10 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
What I want to implement is , lets say I have 100 nodes on my patch. I want to assign different jump values to each node. Right now, whatever value of jump I give, it remains constant for all the points on the patch. Something similar to timevaryingmappedfixedvalue
|
|
July 19, 2011, 16:06 |
|
#11 |
Senior Member
Nima Samkhaniani
Join Date: Sep 2009
Location: Tehran, Iran
Posts: 1,267
Blog Entries: 1
Rep Power: 25 |
look into fanFvPatchFields.C line 50 :
jump_ = f_[0]; jump_ define the value of jump for each node 1) maybe you need to define "f" as field type or read jump_ value directly from ioDictionary , you should look deeper but its possible |
|
June 3, 2014, 12:48 |
Error mapping p
|
#12 |
New Member
Dominik Pöltl
Join Date: Jul 2013
Location: Hamburg
Posts: 21
Rep Power: 13 |
Dear all,
thanks for the thread so far. I had the same aim as doubtsincfd and also the same problem: Here's what I changed according to your advice: -defined all patches as master/slave pairs in blockMeshDict Code:
cyclic innerRect0 ( (0 1 2 3) //0, front (17 20 19 18) //12, back ) Code:
innerRect0 { type cyclic; } Code:
innerRect0 { type fan; patchType cyclic; f List<scalar> 2(10 -1); } I can even map the mesh in paraFoam without mapping the field for p. As soon as I want to map it, here's what I get: Code:
--> FOAM FATAL ERROR: request for surfaceScalarField phi from objectRegistry region0 failed available objects of type surfaceScalarField are 1(weights) From function objectRegistry::lookupObject<Type>(const word&) const in file /home/opencfd/OpenFOAM/OpenFOAM-2.2.0/src/OpenFOAM/lnInclude/objectRegistryTemplates.C at line 136. FOAM aborting P.S. I'm running OF 2.2.0 |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
jumpCyclic? | leejc | OpenFOAM | 2 | July 15, 2016 05:17 |
JumpCyclic | brahim | OpenFOAM Running, Solving & CFD | 3 | July 17, 2011 22:23 |
jumpCyclic bc not for scalar field? | doubtsincfd | OpenFOAM | 0 | July 12, 2011 19:02 |
Velocity BC in cyclic 2D domain | Ivo | OpenFOAM | 1 | July 30, 2010 12:22 |
Cyclic jump boundary condition | hjasak | OpenFOAM Running, Solving & CFD | 10 | April 16, 2010 16:35 |