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

Interfoam - apply limitFields only to air fraction

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 8, 2024, 06:23
Default Interfoam - apply limitFields only to air fraction
  #1
New Member
 
Join Date: Mar 2021
Posts: 12
Rep Power: 5
BasG is on a distinguished road
Hi!


I am running a simulation in OpenFOAM using the interFoam solver.
During my simulation, the velocities in the air fraction become unrealistically high. Since these effects are tampering my time step, I'd like to limit the velocities in the air fraction artificially by using the limitFields function in my controlDict.


The only thing is, that when I set a limit for the velocity field, both the velocity of my air and water fraction is limited. I use the following:


Code:
    limitVelocity
    {
         type limitFields;
         libs ("libfieldFunctionObjects.so");
         fields (U);
         writeControl    adjustableRunTime;
         writeInterval   10;    
         limit both;
         min 0;   // Set the minimum value for the velocity magnitude
         max 1;  // Set the maximum value for the velocity magnitude (adjust as needed)
    }
Is there any way to limit the velocities of only the air fraction in my model?
If another function than limitFields is more suitable, please let me know as well.


Best,
Bas
BasG is offline   Reply With Quote

Old   August 9, 2024, 09:05
Default Solved
  #2
New Member
 
Join Date: Mar 2021
Posts: 12
Rep Power: 5
BasG is on a distinguished road
A thourough search brought me here:
https://github.com/nicolasbadano/air...on/tree/master


I only could get it running for openFoam version 1812.
BasG is offline   Reply With Quote

Old   October 30, 2024, 10:23
Default
  #3
Member
 
Michael Sukham
Join Date: Mar 2020
Location: India
Posts: 84
Rep Power: 6
2538sukham is on a distinguished road
It does work with openfoam 12 as well in fvModels entry. But I dont see any changes in the velocity

Last edited by 2538sukham; October 31, 2024 at 00:08.
2538sukham is offline   Reply With Quote

Reply

Tags
interfoam, limitfields, openfoam, vof


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
Limiting volume fraction in interFoam sita OpenFOAM Running, Solving & CFD 7 June 5, 2024 12:58
What are the best settings for a channel flow simulation? Ashkan Kashani CFX 3 October 13, 2022 22:36
multiphase turbulance case floating error harsha_kulkarni OpenFOAM Running, Solving & CFD 3 February 18, 2016 06:06
[OpenFOAM.org] Compile OF 2.3 on Mac OS X .... the patch gschaider OpenFOAM Installation 225 August 25, 2015 20:43
How to apply negtive pressure to outlet bioman66 CFX 5 June 3, 2006 02:40


All times are GMT -4. The time now is 17:26.