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

How can we give a profile to a patchMeanVelocityForce in fvOptions?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 17, 2021, 08:39
Default How can we give a profile to a patchMeanVelocityForce in fvOptions?
  #1
New Member
 
Saugat Shrestha
Join Date: Dec 2019
Location: Thailand
Posts: 27
Rep Power: 6
saugatshr4 is on a distinguished road
Hello,

I am using a cyclic boundary layer for an atmospheric boundary layer condition. Here I need to give a velocity profile and turbulence profile at the inlet using the fvOptions. I am currently only able to give a fixed value.

Can you please help me to input a profile, extracting the data from a CSV file, or any other way possible? I tried using the fixed profile function but I can't make it work. I could use the fixed profile option to define the boundary conditions, but can't make it work here.

Your help will be deeply appreciated.

Thank You.

With best regards,
Saugat



This is for the fixed value of velocity
Quote:
momentumSource
{
type patchMeanVelocityForce;
active yes;

patchMeanVelocityForceCoeffs
{
selectionMode all;
fields (U);
patch inlet;
Ubar (0 8 0);
relaxation 0.2;
}
}
I tried this it doesn't work (its more like a wild guess):
Quote:
momentumSource
{
type patchMeanVelocityForce;
active yes;

patchMeanVelocityForceCoeffs
{
selectionMode all;
fields (U);
patch inlet;
U
{
type fixedProfile;
profile csvFile;
profileCoeffs
{
nHeaderLine 0;
refColumn 0;
componentColumns (1);
separator ",";
mergeSeparators 0;
outOfBounds clamp;
file "C:\Program Files\blueCFD-Core-2017\ofuser-of5\run\manualK_20210812\0\Book2.csv";
}
direction (0 0 1);
origin 0;
}
relaxation 0.2;
}
}
saugatshr4 is offline   Reply With Quote

Reply

Tags
fvo


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
turbulentDigitalFilterInlet input stress profile does not match generated profile Tom Lauriks OpenFOAM 0 July 15, 2021 09:01
Import .csv - velocity profile - error eSKa CFX 9 April 3, 2021 13:38
Blade Generator: How to use Design Profile & Trim Profile Stabum CFX 2 July 31, 2015 13:01
deviated velocity profile rayan24 Main CFD Forum 0 July 3, 2013 16:34
problem with importing and exporting profile BC Gui CFX 2 July 26, 2007 08:50


All times are GMT -4. The time now is 02:25.