Open Foam /Setfields
Hi!
I want to use VOF solver and need to set the field in an exact manner. for example set in a circular region or other more complicated shapes. Can anyone help me? |
Quote:
|
Thanks alot but can my reason satisfied simpler for example is there a substitution for ?Box to cell" in the Foam?
|
there is a list for available types
Valid topoSetSource types : 39 ( boundaryToFace boxToCell boxToFace boxToPoint cellToCell cellToFace cellToPoint cylinderAnnulusToCell cylinderToCell faceToCell faceToFace faceToPoint faceZoneToCell faceZoneToFaceZone fieldToCell labelToCell labelToFace labelToPoint nbrToCell nearestToCell nearestToPoint normalToFace patchToFace pointToCell pointToFace pointToPoint regionToCell rotatedBoxToCell setToCellZone setToFaceZone setToPointZone setsToFaceZone shapeToCell sphereToCell surfaceToCell surfaceToPoint zoneToCell zoneToFace zoneToPoint ) |
Two examples of selecting specific region & faces(setFieldsDict):
regions ( /*cylinderToCell { p1 (0 0 -0.025); //Min p2 (0 0 0.05); //Max radius 0.098; fieldValues ( volScalarFieldValue alpha1 1 ); }*/ patchToFace { name sym1; fieldValues ( volScalarFieldValue alpha1 1 ); } ); |
Hi all,
is it possible to set the cell values of alpha1 (i.e) to 1 in a given STL file? Therefor I want to use the "surfaceToCell" method. Is that method for that ? Thanks tobi |
Quote:
I am looking for the same thing you asked about.. did you find the answer for this question? can we import STL under a certain name and give it liquid properties and how to do the setting in setFields? if this possible.. do we need any extra dictionary to define? Thanks in advance, Sandy13, |
Hi Sandy,
I used this code as a setSet batch of commands, to define a porous region inside a tunnel: Code:
pointSet tempSet new surfaceToPoint "./constant/triSurface/vehicles.stl" 0.1 true false Happy FOAMing! |
Quote:
|
Quote:
|
multiple regions
Similar question: is it possible to set multiple regions? I typed 2 cylinderToCell, 1 boxToCell and 1 boxToFace but not all are highlighted when I check in paraView.
How come? Thanks a lot in advance |
Hello everybody,
I found this thread while I was searching for my question on how to assign the field values permanently...? Lets say like a BC! I want to do some tracer simulations with scalarTransportFoam. Since my interesting region starts away from the inlet, I would loose a lot of time by calculating the flow to the interesting region... I had a solution by adding a forAll loop in the scalarTransportFoam solver where I select all cells at a given z-position and set their value to 1. Worked fine on one core, but when I moved to the cluster and parallel run, things do not work as they should. Thanks for your help. Best regards, Sebastian |
Hello everyone
I just saw this thread I want to implement an algorithm in which there is a need to define some volField and surfaceField on a mesh with different zones, e.g. viscosity on cellZones and flux on faceZones that have different values at different zones. These fields also need to be updated through solution. I want to do this in my code rather than topoSet or setSet utilities. in a nutshell, I am wondering if there is any way to define a field which has different values at different zones Any help will be appreciated |
Quote:
|
Setfield for Semi-circular-cylindrical region
Hi guys!
I am trying to run a two-phase flow of air-water. The system initializes the cylinder as completely containing air. I am have having difficulty trying to setField half of my cylinder to contain water. Could anyone assist me in this matter please? Kind regards Shafik |
Quote:
|
Quote:
I want to try something similar but I am using OF version 5 and it seems that swak4Foam is not supported with this version. Any alternative suggestions/ideas on how this can be done? Specifically, I am simulating bubble oscillations and want to implement a smoothing function on alpha1 to eliminate parasitic currents at the interface... Thanks! |
Quote:
Version 0.4.2 from December supports 5.0 (in addition to v6, 1806 and 1812). Seems that I didn't advertise it too aggressively at the time |
That's great! Last time I checked was November to it was not available at the time..good to hear it is now supported also in the newer OF versions, thanks for this :)
|
Quote:
Usually the development-branch of the repository supports new OF versions a couple of weeks after their release (ESI-releases usually when they are released as ESI supplies me with patches for swak before the release) I only do releases rarely because they have to be tested against the different distros. But I plan to do them more often (based on the ESI-release cycle as that is the distro I currently use most and they have a release schedule that allows me to plan) |
All times are GMT -4. The time now is 08:03. |