What is DTRIS2 - Fatal error?
Hello World.
Unfortunately I'm hitting an error message, which I have never seen before. When running the case I get this strange error: Code:
Reading field p Be aware that this case it not "ordinary". I'm toying around with the timeVaryingMappedFixedValue boundary condition. Maybe there is something wrong, but I don't see it ... |
timeVaryingMapped does a triangulation of the supplied points. You'll get this error if you don't have enough points for a triangulation or they are not in a plane. It works out the plane from the first three points. Switch on its debug flag to see which points it uses.
|
Quote:
|
Section 3.2.5 in the user guide.
|
Thanks.
So, now I put the entry Code:
DebugSwitches How does this Debug Switch work? |
Please, consider this problem solved.
I made a severe error with the discretisation which had nothing to do with the boundary condition itself! |
Quote:
On slightly different geometry I get similar errors with the triangulation. This time its a "real" problem as I didn't do stupid mistakes with the geometry itself. First of all I need to know how the debugging flags work (switching them on was easy - see post from August 6th), but I don't know how to extract information out of it. Just to make this right: The first three points are not forming a plane and that is causing the trouble?! |
I assume that is the problem. Run e.g. the pitzDailyExptInlet with the debug switch on and check especially what the first three points are (used to define the coordinate system). I assume your points are on a line or too close together and the (2D) triangulation routine (Geompack) does not get a correct set of points.
|
Ok, I did it. But I can't find any output connected to the Debug switch.
Is there a file created, or anything similar to look at?! |
AHA! You don't have to add the DebugSwitch to the cases controlDict!!!
You have to switch it on at the "global" controlDict!?! (~/OpenFOAM/OpenFOAM-1.5/etc/controlDict) Well this was not clear to me from the description in the Users Guide! |
So here we go with the output with activated debug switch!
Code:
/*---------------------------------------------------------------------------*\ So the triangulation for the first patch is ok, but in case of the second face the points are one a line! Meaning they have equal x3-Coordinates: Code:
(1.13735 0.636946 1.9375) (1.16851 0.654397 1.9375) (1.19967 0.671848 1.9375) Right? |
Please forgive my impatience. Its obvious that there is a problem with the three points from above being in a line.
What you have to know is that I am gathering the points from a small code I wrote myself. So to avoid such problems with the triangulation I need to know what the condition for a successful triangulation is! Than I can check the condition while collecting the points and maybe can do some switching to get the right points on top of the list. Do you understand what I mean? |
I think I have found the condition and moved with the related questions to a different thread:
http://www.cfd-online.com/Forums/ope...ixedvalue.html Maybe someone can tell my if I'm on the right track chasing this condition? |
Quote:
I am trying to use the timeVaryingMappedFixedValue Function. Iīve already written my files to the boundaryData folder. But now I donīt know how to proceed. How can I triangulate these Values to my BC file in the time Folder. timeVaryingMapped is unknown to my OF installation. I have checked various other (older as well as newer) installations but I never found a utility like this. Is this the correct name? How can I proceed from my state? Thanks! |
The "mapped" conditions changed in OpenFOAM 2.1.x, however the same operations can be performed:
http://www.openfoam.org/version2.1.0...conditions.php |
thanks for the link, but its no use for me because I am using OF 2.0
|
Them it is timeVaryingMappedFixedValue (See: ~/OpenFOAM-2.0.x/src/finiteVolume/fields/fvPatchFields/derived/timeVaryingMappedFixedValue/ ).
Best, |
HI Alberto,
I guess we are at cross-purposes. I am not searching the name for the BC, what I am missing are the values within this BC. During runtime I get this error: Quote:
I searched for an utility something like 'timeVaryingMapped' as it is written earlier in this thread. But this is completely unknown to OF (1.5; 1.7; 2.0; 2.1) These are the files I am using so far: my BC file is: Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // Code:
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * // |
OK. I misunderstood your question before. Sorry about that.
If the geometry is simple, with some coding you could print out the face centres of the patch corresponding to your BC, and use those to create your input. As an alternative, if you can provide a functional expression to your BC, you could use GroovyBC (it's on the OpenFOAM wiki, as part of swak4Foam http://openfoamwiki.net/index.php/Contrib/swak4Foam ). |
Hey alberto,
I thought there is maybe an automatic way to map my values to the BC. (quite naive to think so, this is OF :() So I have to hard code it in my BC File? I have read about a utility to write out the cell centers. I hope I find it again What for do I specify the 'points' file and the values in constant/boundaryData/Patch/time/variable if I cant map it to my BC File? Is this just for later times? Thanks |
Hi camoesas (and others),
may I ask if you found a solution for it? I'm having similar trouble right now, so maybe you have a hint for me: http://www.cfd-online.com/Forums/ope...new-setup.html Thanks, Arne |
HI Arne,
I made it this way: > foamToSurface file.ext This Utility writes geometry information about your cells at the boundary. For 'ext' use one of 13 possible formats. (I forget which one I used) Then I have read the points in matlab and calculated the corresponding values. these I have copied in my boundary file. Instead of matlab of course you can use anything else. But you have to deliver the values for the center of the cells not the nodes... good luck |
difference between timeVaryingMappedFixedValue and unifromValue
Quote:
Does that mean uniformValue can do all the jobs timeVaryingMappedFixedValue can do? Do I need to study timeVaryingMappedFixedValue any more? It seems there are too few documentations and tutorials for timeVaryingMappedFixedValue. Thanks! |
All times are GMT -4. The time now is 08:01. |